mirror of
https://github.com/kubescape/kubescape.git
synced 2026-02-14 18:09:55 +00:00
58 lines
979 B
YAML
58 lines
979 B
YAML
linters-settings:
|
|
govet:
|
|
check-shadowing: true
|
|
dupl:
|
|
threshold: 200
|
|
goconst:
|
|
min-len: 3
|
|
min-occurrences: 2
|
|
gocognit:
|
|
min-complexity: 65
|
|
|
|
linters:
|
|
enable:
|
|
- gosec
|
|
- staticcheck
|
|
- nolintlint
|
|
- gofmt
|
|
- unused
|
|
- govet
|
|
- bodyclose
|
|
- typecheck
|
|
- goimports
|
|
- ineffassign
|
|
- gosimple
|
|
disable:
|
|
# temporarily disabled
|
|
- varcheck
|
|
- errcheck
|
|
- dupl
|
|
- gocritic
|
|
- gocognit
|
|
- nakedret
|
|
- revive
|
|
- stylecheck
|
|
- unconvert
|
|
- unparam
|
|
#- forbidigo # <- see later
|
|
# should remain disabled
|
|
- deadcode # deprecated linter
|
|
- maligned
|
|
- lll
|
|
- gochecknoinits
|
|
- gochecknoglobals
|
|
issues:
|
|
exclude-rules:
|
|
- linters:
|
|
- revive
|
|
text: "var-naming"
|
|
- linters:
|
|
- revive
|
|
text: "type name will be used as (.+?) by other packages, and that stutters"
|
|
- linters:
|
|
- stylecheck
|
|
text: "ST1003"
|
|
run:
|
|
skip-dirs:
|
|
- git2go
|