Update golangci-lint configuration
- replace deprecated linters - add more linters
This commit is contained in:
parent
a9290b9717
commit
63c748bb1d
1 changed files with 8 additions and 3 deletions
|
@ -37,17 +37,22 @@ linters:
|
|||
disable-all: false
|
||||
enable:
|
||||
- bodyclose
|
||||
- containedctx
|
||||
- contextcheck
|
||||
- cyclop
|
||||
- decorder
|
||||
- errorlint
|
||||
- exportloopref
|
||||
- forbidigo
|
||||
- forcetypeassert
|
||||
- gocognit
|
||||
- goconst
|
||||
- gocritic
|
||||
- gofmt
|
||||
- goheader
|
||||
- goimports
|
||||
- golint
|
||||
- gomnd
|
||||
- gosec
|
||||
- interfacer
|
||||
- lll
|
||||
- makezero
|
||||
- misspell
|
||||
|
@ -56,8 +61,8 @@ linters:
|
|||
- nlreturn
|
||||
- nolintlint
|
||||
- predeclared
|
||||
- revive
|
||||
- rowserrcheck
|
||||
- scopelint
|
||||
- sqlclosecheck
|
||||
- wrapcheck
|
||||
- wsl
|
||||
|
|
Loading…
Reference in a new issue