mirror of
https://github.com/spf13/cobra
synced 2024-11-24 14:47:12 +00:00
golangci: enable 'unused' and disable deprecated replaced by it (#1983)
This commit is contained in:
parent
c81c46a015
commit
66b215ba18
1 changed files with 4 additions and 4 deletions
|
@ -19,7 +19,7 @@ linters:
|
||||||
disable-all: true
|
disable-all: true
|
||||||
enable:
|
enable:
|
||||||
#- bodyclose
|
#- bodyclose
|
||||||
- deadcode
|
# - deadcode ! deprecated since v1.49.0; replaced by 'unused'
|
||||||
#- depguard
|
#- depguard
|
||||||
#- dogsled
|
#- dogsled
|
||||||
#- dupl
|
#- dupl
|
||||||
|
@ -51,12 +51,12 @@ linters:
|
||||||
#- rowserrcheck
|
#- rowserrcheck
|
||||||
#- scopelint
|
#- scopelint
|
||||||
#- staticcheck
|
#- staticcheck
|
||||||
- structcheck
|
#- structcheck ! deprecated since v1.49.0; replaced by 'unused'
|
||||||
#- stylecheck
|
#- stylecheck
|
||||||
#- typecheck
|
#- typecheck
|
||||||
- unconvert
|
- unconvert
|
||||||
#- unparam
|
#- unparam
|
||||||
#- unused
|
- unused
|
||||||
- varcheck
|
# - varcheck ! deprecated since v1.49.0; replaced by 'unused'
|
||||||
#- whitespace
|
#- whitespace
|
||||||
fast: false
|
fast: false
|
||||||
|
|
Loading…
Reference in a new issue