Skip to content

Commit

Permalink
enable gosec linter
Browse files Browse the repository at this point in the history
  • Loading branch information
mmorel-35 authored Dec 22, 2021
1 parent 5801744 commit 851bffc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
issues:
max-same-issues: 0
exclude-rules:
- linters:
- gosec
text: "G204"
- linters:
- revive
text: "var-naming"
Expand All @@ -15,6 +18,7 @@ linters:
- gci
- gofmt
- gofumpt
- gosec
- gosimple
- misspell
- nolintlint
Expand Down
2 changes: 1 addition & 1 deletion internal/common/common_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 851bffc

Please sign in to comment.