108 lines
1.7 KiB
YAML
108 lines
1.7 KiB
YAML
linters:
|
|
enable-all: false
|
|
disable-all: true
|
|
enable:
|
|
- errcheck
|
|
- gosimple
|
|
- govet
|
|
- ineffassign
|
|
- staticcheck
|
|
- typecheck
|
|
- unused
|
|
- asasalint
|
|
- asciicheck
|
|
- bidichk
|
|
- bodyclose
|
|
- containedctx
|
|
- contextcheck
|
|
- decorder
|
|
- dogsled
|
|
- dupl
|
|
- dupword
|
|
- durationcheck
|
|
- errchkjson
|
|
- errname
|
|
- errorlint
|
|
# - exhaustive
|
|
- copyloopvar
|
|
- forcetypeassert
|
|
- ginkgolinter
|
|
- gocheckcompilerdirectives
|
|
- gochecknoglobals
|
|
- gochecknoinits
|
|
- gocognit
|
|
- goconst
|
|
- gocritic
|
|
- gocyclo
|
|
- godot
|
|
# - godox
|
|
- err113
|
|
- gofmt
|
|
- gofumpt
|
|
- goheader
|
|
- goimports
|
|
- mnd
|
|
- gomoddirectives
|
|
- gomodguard
|
|
- goprintffuncname
|
|
- gosec
|
|
- grouper
|
|
- importas
|
|
- interfacebloat
|
|
- ireturn
|
|
- lll
|
|
- loggercheck
|
|
- maintidx
|
|
- makezero
|
|
- misspell
|
|
- musttag
|
|
- nakedret
|
|
- nestif
|
|
- nilerr
|
|
- nilnil
|
|
- nlreturn
|
|
- noctx
|
|
- nolintlint
|
|
- nonamedreturns
|
|
- nosprintfhostport
|
|
- prealloc
|
|
- predeclared
|
|
- promlinter
|
|
- reassign
|
|
- revive
|
|
# - rowserrcheck
|
|
# - sqlclosecheck
|
|
# - structcheck
|
|
- stylecheck
|
|
- tagliatelle
|
|
- tenv
|
|
- testableexamples
|
|
- thelper
|
|
- tparallel
|
|
- unconvert
|
|
- unparam
|
|
- usestdlibvars
|
|
# - wastedassign
|
|
- whitespace
|
|
- wsl
|
|
- zerologlint
|
|
fast: false
|
|
|
|
run:
|
|
timeout: 3m
|
|
|
|
linters-settings:
|
|
tagliatelle:
|
|
case:
|
|
rules:
|
|
yaml: kebab
|
|
gofumpt:
|
|
extra-rules: true
|
|
|
|
issues:
|
|
exclude-rules:
|
|
- path: (.+)_test.go
|
|
linters:
|
|
- gosec
|
|
- gochecknoglobals
|
|
- prealloc
|