2019-10-19 14:50:13 +00:00
|
|
|
linters:
|
2024-05-14 19:54:08 +00:00
|
|
|
enable-all: true
|
|
|
|
disable:
|
|
|
|
- asasalint
|
|
|
|
- asciicheck
|
|
|
|
- bidichk
|
|
|
|
- bodyclose
|
|
|
|
- canonicalheader
|
|
|
|
- containedctx
|
|
|
|
- contextcheck
|
|
|
|
- copyloopvar
|
|
|
|
- cyclop
|
|
|
|
- decorder
|
|
|
|
- depguard
|
|
|
|
- dogsled
|
|
|
|
- dupl
|
|
|
|
- dupword
|
|
|
|
- durationcheck
|
|
|
|
- err113
|
|
|
|
- errchkjson
|
|
|
|
- errname
|
|
|
|
- errorlint
|
|
|
|
- exhaustive
|
|
|
|
- exhaustruct
|
|
|
|
- exportloopref
|
|
|
|
- fatcontext
|
|
|
|
- forbidigo
|
|
|
|
- forcetypeassert
|
|
|
|
- funlen
|
|
|
|
- gci
|
|
|
|
- ginkgolinter
|
|
|
|
- gocheckcompilerdirectives
|
|
|
|
- gochecknoglobals
|
|
|
|
- gochecknoinits
|
|
|
|
- gochecksumtype
|
|
|
|
- gocognit
|
|
|
|
- goconst
|
|
|
|
- gocritic
|
|
|
|
- gocyclo
|
|
|
|
- godot
|
|
|
|
- godox
|
|
|
|
- gofumpt
|
|
|
|
- goheader
|
|
|
|
- goimports
|
|
|
|
- gomoddirectives
|
|
|
|
- gomodguard
|
|
|
|
- goprintffuncname
|
|
|
|
- gosec
|
|
|
|
- gosimple
|
|
|
|
- gosmopolitan
|
|
|
|
- grouper
|
|
|
|
- importas
|
|
|
|
- inamedparam
|
|
|
|
- interfacebloat
|
|
|
|
- intrange
|
|
|
|
- ireturn
|
|
|
|
- lll
|
|
|
|
- maintidx
|
|
|
|
- makezero
|
|
|
|
- mirror
|
|
|
|
- misspell
|
|
|
|
- mnd
|
|
|
|
- musttag
|
|
|
|
- nakedret
|
|
|
|
- nestif
|
|
|
|
- nlreturn
|
|
|
|
- noctx
|
|
|
|
- nolintlint
|
|
|
|
- nonamedreturns
|
|
|
|
- nosprintfhostport
|
|
|
|
- paralleltest
|
|
|
|
- predeclared
|
|
|
|
- protogetter
|
|
|
|
- reassign
|
|
|
|
- rowserrcheck
|
|
|
|
- sloglint
|
|
|
|
- spancheck
|
|
|
|
- sqlclosecheck
|
|
|
|
- staticcheck
|
|
|
|
- stylecheck
|
|
|
|
- tagalign
|
|
|
|
- tagliatelle
|
|
|
|
- tenv
|
|
|
|
- testableexamples
|
|
|
|
- testifylint
|
|
|
|
- testpackage
|
|
|
|
- thelper
|
|
|
|
- tparallel
|
|
|
|
- usestdlibvars
|
|
|
|
- varnamelen
|
|
|
|
- wastedassign
|
|
|
|
- whitespace
|
|
|
|
- wrapcheck
|
|
|
|
- wsl
|
|
|
|
- zerologlint
|
|
|
|
- execinquery
|
|
|
|
- gomnd
|
2019-10-19 14:50:13 +00:00
|
|
|
|
|
|
|
issues:
|
|
|
|
exclude:
|
|
|
|
- don't use underscores in Go names
|
2023-11-04 19:51:35 +00:00
|
|
|
- don't use an underscore in package name
|
2019-10-19 14:50:13 +00:00
|
|
|
- exported type .+ should have comment or be unexported
|
|
|
|
exclude-rules:
|
|
|
|
- # Golint has many capitalisation complaints on WMI class names
|
|
|
|
text: "`?\\w+`? should be `?\\w+`?"
|
|
|
|
linters:
|
2021-12-24 10:19:05 +00:00
|
|
|
- revive
|
|
|
|
- text: "don't use ALL_CAPS in Go names; use CamelCase"
|
|
|
|
linters:
|
|
|
|
- revive
|