golangci.yml - disable deprecated checkers

This commit is contained in:
Russ Magee 2022-09-20 21:12:13 -07:00
parent b5f9333b3a
commit 1d13e6a3bd

View file

@ -21,9 +21,9 @@ linters-settings:
enabled-tags:
- diagnostic
- experimental
- opinionated
- performance
- style
#- style
#- opinionated
disabled-checks:
- dupImport # https://github.com/go-critic/go-critic/issues/845
- ifElseChain
@ -34,8 +34,6 @@ linters-settings:
min-complexity: 15
goimports:
local-prefixes: github.com/golangci/golangci-lint
golint:
min-confidence: 0
gomnd:
settings:
mnd:
@ -55,7 +53,7 @@ linters-settings:
maligned:
suggest-new: true
misspell:
locale: US
locale: en_CA
nolintlint:
allow-leading-space: true # don't require machine-readable nolint directives (i.e. with no leading space)
allow-unused: false # report any unused nolint directives
@ -68,12 +66,12 @@ linters:
disable-all: true
enable:
- bodyclose
- deadcode
- depguard
- dogsled
- dupl
- errcheck
- exhaustive
- exportloopref
- funlen
- gochecknoinits
- goconst
@ -81,42 +79,43 @@ linters:
- gocyclo
- gofmt
- goimports
- golint
- gomnd
- goprintffuncname
- gosec
- gosimple
- govet
- ineffassign
- interfacer
- lll
- misspell
- nakedret
- noctx
- nolintlint
- rowserrcheck
- scopelint
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
- varcheck
- whitespace
# don't enable:
# - asciicheck
# - deadcode
# - gochecknoglobals
# - gocognit
# - godot
# - godox
# - goerr113
# - golint
# - interfacer
# - maligned
# - nestif
# - prealloc
## - rowserrcheck
# - scopelint
# - structcheck
# - testpackage
# - varcheck
# - wsl
issues: