sync linting options with stereoscope

This commit is contained in:
Alex Goodman 2020-05-18 09:46:48 -04:00
parent 44d081040f
commit 4cbed05358
No known key found for this signature in database
GPG key ID: 86E2870463D5E890

View file

@ -3,6 +3,7 @@ linters:
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
disable-all: true
enable:
- asciicheck
- bodyclose
- deadcode
- depguard
@ -17,17 +18,16 @@ linters:
- gofmt
- goimports
- golint
- gomnd
- goprintffuncname
- gosec
- gosimple
- govet
- ineffassign
- interfacer
- lll
- maligned
- misspell
- nakedret
- nolintlint
- prealloc
- rowserrcheck
- scopelint
- staticcheck
@ -39,17 +39,16 @@ linters:
- unused
- varcheck
- whitespace
- prealloc
- asciicheck
# do not enable...
# - gochecknoinits
# - gochecknoglobals
# - gochecknoinits # this is too aggressive
# - godot
# - godox
# - goerr113
# - maligned
# - gomnd # this is too aggressive
# - interfacer # this is a good idea, but is no longer supported and is prone to false positives
# - lll # without a way to specify per-line exception cases, this is not usable
# - nestif
# - testpackage
# - wsl
# - wsl