mirror of
https://github.com/spf13/cobra
synced 2025-04-07 07:19:16 +00:00
Address golangci-lint linter deprecation warnings
1.59.0 outputs: WARN [lintersdb] The name "gas" is deprecated. The linter has been renamed to: gosec. WARN [lintersdb] The linter named "megacheck" is deprecated. It has been split into: gosimple, staticcheck, unused.
This commit is contained in:
parent
8003b74a10
commit
157d0ef977
1 changed files with 2 additions and 4 deletions
|
@ -26,7 +26,6 @@ linters:
|
||||||
- errcheck
|
- errcheck
|
||||||
#- exhaustive
|
#- exhaustive
|
||||||
#- funlen
|
#- funlen
|
||||||
- gas
|
|
||||||
#- gochecknoinits
|
#- gochecknoinits
|
||||||
- goconst
|
- goconst
|
||||||
- gocritic
|
- gocritic
|
||||||
|
@ -35,19 +34,18 @@ linters:
|
||||||
- goimports
|
- goimports
|
||||||
#- gomnd
|
#- gomnd
|
||||||
#- goprintffuncname
|
#- goprintffuncname
|
||||||
#- gosec
|
- gosec
|
||||||
- gosimple
|
- gosimple
|
||||||
- govet
|
- govet
|
||||||
- ineffassign
|
- ineffassign
|
||||||
#- lll
|
#- lll
|
||||||
- megacheck
|
|
||||||
#- misspell
|
#- misspell
|
||||||
#- nakedret
|
#- nakedret
|
||||||
#- noctx
|
#- noctx
|
||||||
#- nolintlint
|
#- nolintlint
|
||||||
#- rowserrcheck
|
#- rowserrcheck
|
||||||
#- scopelint
|
#- scopelint
|
||||||
#- staticcheck
|
- staticcheck
|
||||||
#- structcheck ! deprecated since v1.49.0; replaced by 'unused'
|
#- structcheck ! deprecated since v1.49.0; replaced by 'unused'
|
||||||
- stylecheck
|
- stylecheck
|
||||||
#- typecheck
|
#- typecheck
|
||||||
|
|
Loading…
Reference in a new issue