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 # inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
disable-all: true disable-all: true
enable: enable:
- asciicheck
- bodyclose - bodyclose
- deadcode - deadcode
- depguard - depguard
@ -17,17 +18,16 @@ linters:
- gofmt - gofmt
- goimports - goimports
- golint - golint
- gomnd
- goprintffuncname - goprintffuncname
- gosec - gosec
- gosimple - gosimple
- govet - govet
- ineffassign - ineffassign
- interfacer - maligned
- lll
- misspell - misspell
- nakedret - nakedret
- nolintlint - nolintlint
- prealloc
- rowserrcheck - rowserrcheck
- scopelint - scopelint
- staticcheck - staticcheck
@ -39,17 +39,16 @@ linters:
- unused - unused
- varcheck - varcheck
- whitespace - whitespace
- prealloc
- asciicheck
# do not enable... # do not enable...
# - gochecknoinits
# - gochecknoglobals # - gochecknoglobals
# - gochecknoinits # this is too aggressive
# - godot # - godot
# - godox # - godox
# - goerr113 # - 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 # - nestif
# - testpackage # - testpackage
# - wsl # - wsl