enable gosec linter

pull/1208/head
Matthieu MOREL 3 years ago committed by GitHub
parent 5801744ecc
commit 851bffc0f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,6 +2,9 @@ issues:
max-same-issues: 0
exclude-rules:
- linters:
- gosec
text: "G204"
- linters:
- revive
text: "var-naming"
- linters:
@ -15,6 +18,7 @@ linters:
- gci
- gofmt
- gofumpt
- gosec
- gosimple
- misspell
- nolintlint

@ -57,7 +57,7 @@ func CallPgrepWithContext(ctx context.Context, invoke Invoker, pid int32) ([]int
if len(l) == 0 {
continue
}
i, err := strconv.Atoi(l)
i, err := strconv.ParseInt(l, 10, 32)
if err != nil {
continue
}

Loading…
Cancel
Save