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 deadline: 5m
linters: linters:
fast: false
disable-all: true disable-all: true
enable: enable:
#- bodyclose # Enabled by Default
# - deadcode ! deprecated since v1.49.0; replaced by 'unused' # - deadcode ! deprecated since v1.49.0; replaced by 'unused'
#- depguard
#- dogsled
#- dupl
- errcheck - errcheck
#- exhaustive
#- funlen
- gas
#- gochecknoinits
- goconst
#- gocritic
#- gocyclo
- gofmt
- goimports
- golint
#- gomnd
#- goprintffuncname
#- gosec
- gosimple - gosimple
- govet - govet
- ineffassign - 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 #- lll
- maligned #- maintidx
#- makezero
- maligned # !
- megacheck - megacheck
#- misspell #- misspell
#- nakedret #- nakedret
#- nestif
#- nilerr
#- nilnil
#- nlreturn
#- noctx #- noctx
#- nolintlint #- nolintlint
#- nonamedreturns
#- nosnakecase !
#- nosprintfhostport
#- paralleltest
#- prealloc
#- predeclared
#- promlinter
#- revive
#- rowserrcheck #- rowserrcheck
#- scopelint #- scopelint !
- staticcheck #- sqlclosecheck
#- structcheck ! deprecated since v1.49.0; replaced by 'unused' #- structcheck ! deprecated since v1.49.0; replaced by 'unused'
#- stylecheck #- stylecheck
- typecheck #- tagliatelle
#- tenv
#- testpackage
#- thelper
#- tparallel
- unconvert - unconvert
#- unparam #- unparam
- unused #- usestdlibvars
# - varcheck ! deprecated since v1.49.0; replaced by 'unused' #- varnamelen
#- wastedassign
#- whitespace #- whitespace
fast: false #- wrapcheck
#- wsl