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 max-same-issues: 0
exclude-rules: exclude-rules:
- linters: - linters:
- gosec
text: "G204"
- linters:
- revive - revive
text: "var-naming" text: "var-naming"
- linters: - linters:
@ -15,6 +18,7 @@ linters:
- gci - gci
- gofmt - gofmt
- gofumpt - gofumpt
- gosec
- gosimple - gosimple
- misspell - misspell
- nolintlint - nolintlint

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

Loading…
Cancel
Save