Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci/lint: Use an explicit enable list instead of disable list #199

Merged
merged 1 commit into from
Apr 10, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
59 changes: 30 additions & 29 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,6 @@ linters-settings:
min-occurrences: 10
lll:
line-length: 100
gocritic:
enabled-tags:
- diagnostic
- performance
- style
disabled-checks:
- builtinShadow
- commentFormatting # https://github.com/go-critic/go-critic/issues/755
- importShadow
- octalLiteral
- paramTypeCombine
- singleCaseSwitch
- unnamedResult
- wrapperFunc
settings:
hugeParam:
sizeThreshold: 256

issues:
exclude-use-default: false
Expand All @@ -46,15 +29,33 @@ issues:
linters: [bodyclose]

linters:
enable-all: true
disable:
- dupl
- gochecknoglobals
- gochecknoinits
- gosec
- scopelint
- maligned
- gocritic
- funlen
- godox
- wsl
disable-all: true
enable:
- bodyclose
- deadcode
- depguard
- dogsled
- errcheck
- gocognit
- goconst
- gocyclo
- gofmt
- goimports
- golint
- gosimple
- govet
- ineffassign
- interfacer
- lll
- misspell
- nakedret
- prealloc
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
- varcheck
- whitespace