golangci: update list of available linters

This commit is contained in:
umarcor 2022-08-22 02:49:19 +02:00
parent fca1d61528
commit 287f2e9923

View file

@ -16,47 +16,105 @@ run:
deadline: 5m
linters:
fast: false
disable-all: true
enable:
#- bodyclose
# Enabled by Default
# - deadcode ! deprecated since v1.49.0; replaced by 'unused'
#- depguard
#- dogsled
#- dupl
- errcheck
#- exhaustive
#- funlen
- gas
#- gochecknoinits
- goconst
#- gocritic
#- gocyclo
- gofmt
- goimports
- golint
#- gomnd
#- goprintffuncname
#- gosec
- gosimple
- govet
- ineffassign
- interfacer
- staticcheck
- typecheck
- unused
# - varcheck ! deprecated since v1.49.0; replaced by 'unused'
# Disabled by Default
#- asasalint
#- asciicheck
#- bidichk
#- bodyclose
#- containedctx
#- contextcheck
#- cyclop
#- decorder
#- depguard
#- dogsled
#- dupl
#- durationcheck
#- errchkjson
#- errname
#- errorlint
#- execinquery
#- exhaustive
#- exhaustivestruct !
#- exhaustruct
#- exportloopref
#- forbidigo
#- forcetypeassert
#- funlen
- gas
#- gci
#- gochecknoglobals
#- gochecknoinits
#- gocognit
- goconst
#- gocritic
#- gocyclo
#- godot
#- godox
#- goerr113
- gofmt
#- gofumpt
#- goheader
- goimports
- golint # !
#- gomnd
#- gomoddirectives
#- gomodguard
#- goprintffuncname
#- gosec
#- grouper
#- ifshort !
#- importas
- interfacer # !
#- ireturn
#- lll
- maligned
#- maintidx
#- makezero
- maligned # !
- megacheck
#- misspell
#- nakedret
#- nestif
#- nilerr
#- nilnil
#- nlreturn
#- noctx
#- nolintlint
#- nonamedreturns
#- nosnakecase !
#- nosprintfhostport
#- paralleltest
#- prealloc
#- predeclared
#- promlinter
#- revive
#- rowserrcheck
#- scopelint
- staticcheck
#- scopelint !
#- sqlclosecheck
#- structcheck ! deprecated since v1.49.0; replaced by 'unused'
#- stylecheck
- typecheck
#- tagliatelle
#- tenv
#- testpackage
#- thelper
#- tparallel
- unconvert
#- unparam
- unused
# - varcheck ! deprecated since v1.49.0; replaced by 'unused'
#- usestdlibvars
#- varnamelen
#- wastedassign
#- whitespace
fast: false
#- wrapcheck
#- wsl