Skip to content

Commit

Permalink
Add gosec (#2882)
Browse files Browse the repository at this point in the history
  • Loading branch information
sashamelentyev committed Sep 28, 2021
1 parent d6534cc commit f469c1b
Showing 1 changed file with 33 additions and 29 deletions.
62 changes: 33 additions & 29 deletions .golangci.yml
Expand Up @@ -2,34 +2,38 @@ run:
timeout: 5m
linters:
enable:
- asciicheck
- depguard
- dogsled
- durationcheck
- errcheck
- errorlint
- exportloopref
- gci
- gofmt
- goimports
- misspell
- nakedret
- nilerr
- nolintlint
- revive
- wastedassign
- asciicheck
- depguard
- dogsled
- durationcheck
- errcheck
- errorlint
- exportloopref
- gci
- gofmt
- goimports
- gosec
- misspell
- nakedret
- nilerr
- nolintlint
- revive
- wastedassign
issues:
exclude-rules:
- linters:
- structcheck
- unused
text: "`data` is unused"
- linters:
- staticcheck
text: "SA1019:"
- linters:
- revive
text: "var-naming:"
- linters:
- revive
text: "exported:"
- linters:
- structcheck
- unused
text: "`data` is unused"
- linters:
- staticcheck
text: "SA1019:"
- linters:
- revive
text: "var-naming:"
- linters:
- revive
text: "exported:"
- path: _test\.go
linters:
- gosec # security is not make sense in tests

0 comments on commit f469c1b

Please sign in to comment.