mirror of
https://github.com/containers/podman.git
synced 2025-06-23 10:38:20 +08:00
linter: blacklist linters instead of whitelisting
Blacklist linters instead of whitelisting them. This way, we will benefit from new linters when updating and it's easier to actually find and fix open issues. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
@ -17,39 +17,20 @@ run:
|
||||
skip-files:
|
||||
- iopodman.go
|
||||
linters:
|
||||
disable-all: true
|
||||
enable:
|
||||
# - bodyclose
|
||||
- deadcode
|
||||
- depguard
|
||||
# dupl really overdid it; disabling
|
||||
# - dupl
|
||||
- errcheck
|
||||
- gofmt
|
||||
- gosimple
|
||||
- govet
|
||||
- ineffassign
|
||||
- nakedret
|
||||
- staticcheck
|
||||
- structcheck
|
||||
- typecheck
|
||||
- unused
|
||||
- varcheck
|
||||
# - gochecknoglobals
|
||||
# - gochecknoinits
|
||||
# - goconst
|
||||
# - gocritic
|
||||
# - gocyclo
|
||||
# - goimports
|
||||
# - golint
|
||||
# - gosec
|
||||
- interfacer
|
||||
# - lll
|
||||
# - maligned
|
||||
# - misspell
|
||||
# - prealloc
|
||||
- scopelint
|
||||
- stylecheck
|
||||
- unconvert
|
||||
# I think we should uncomment this one and used it
|
||||
# - unparam
|
||||
enable-all: true
|
||||
disable:
|
||||
- dupl
|
||||
- funlen
|
||||
- gochecknoglobals
|
||||
- gochecknoinits
|
||||
- goconst
|
||||
- gocritic
|
||||
- gocyclo
|
||||
- golint
|
||||
- goimports
|
||||
- gosec
|
||||
- lll
|
||||
- maligned
|
||||
- misspell
|
||||
- prealloc
|
||||
- unparam
|
||||
|
Reference in New Issue
Block a user