golangci.yml - disable deprecated checkers

This commit is contained in:
Russ Magee 2022-09-20 21:12:13 -07:00
parent b5f9333b3a
commit 1d13e6a3bd
1 changed files with 11 additions and 12 deletions

View File

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