Add gosec

This commit is contained in:
Alexander Melentyev 2021-09-26 13:38:35 +03:00
parent e052bf31aa
commit 37027a68c8

View File

@ -2,34 +2,38 @@ run:
timeout: 5m timeout: 5m
linters: linters:
enable: enable:
- asciicheck - asciicheck
- depguard - depguard
- dogsled - dogsled
- durationcheck - durationcheck
- errcheck - errcheck
- errorlint - errorlint
- exportloopref - exportloopref
- gci - gci
- gofmt - gofmt
- goimports - goimports
- misspell - gosec
- nakedret - misspell
- nilerr - nakedret
- nolintlint - nilerr
- revive - nolintlint
- wastedassign - revive
- wastedassign
issues: issues:
exclude-rules: exclude-rules:
- linters: - linters:
- structcheck - structcheck
- unused - unused
text: "`data` is unused" text: "`data` is unused"
- linters: - linters:
- staticcheck - staticcheck
text: "SA1019:" text: "SA1019:"
- linters: - linters:
- revive - revive
text: "var-naming:" text: "var-naming:"
- linters: - linters:
- revive - revive
text: "exported:" text: "exported:"
- path: (_test\.go)
linters:
- gosec # security is not make sense in tests