Update golangci-lint configuration

- replace deprecated linters
- add more linters
main
Jan Dittberner 3 years ago
parent a9290b9717
commit 63c748bb1d

@ -37,17 +37,22 @@ linters:
disable-all: false disable-all: false
enable: enable:
- bodyclose - bodyclose
- containedctx
- contextcheck
- cyclop
- decorder
- errorlint - errorlint
- exportloopref
- forbidigo
- forcetypeassert
- gocognit - gocognit
- goconst - goconst
- gocritic - gocritic
- gofmt - gofmt
- goheader - goheader
- goimports - goimports
- golint
- gomnd - gomnd
- gosec - gosec
- interfacer
- lll - lll
- makezero - makezero
- misspell - misspell
@ -56,8 +61,8 @@ linters:
- nlreturn - nlreturn
- nolintlint - nolintlint
- predeclared - predeclared
- revive
- rowserrcheck - rowserrcheck
- scopelint
- sqlclosecheck - sqlclosecheck
- wrapcheck - wrapcheck
- wsl - wsl

Loading…
Cancel
Save