2022-04-25 10:51:42 +00:00
|
|
|
linters:
|
2023-02-08 09:13:28 +00:00
|
|
|
enable-all: false
|
|
|
|
disable-all: true
|
2022-04-25 10:51:42 +00:00
|
|
|
enable:
|
2023-02-08 09:13:28 +00:00
|
|
|
- errcheck
|
2022-04-25 10:51:42 +00:00
|
|
|
- gosimple
|
|
|
|
- govet
|
2023-02-08 09:13:28 +00:00
|
|
|
- ineffassign
|
2022-04-25 10:51:42 +00:00
|
|
|
- staticcheck
|
2023-02-08 09:13:28 +00:00
|
|
|
- typecheck
|
2022-04-25 10:51:42 +00:00
|
|
|
- unused
|
2023-02-08 09:13:28 +00:00
|
|
|
- asasalint
|
|
|
|
- asciicheck
|
|
|
|
- bidichk
|
|
|
|
- bodyclose
|
|
|
|
- containedctx
|
|
|
|
- contextcheck
|
|
|
|
- decorder
|
|
|
|
- dogsled
|
2022-04-25 10:51:42 +00:00
|
|
|
- dupl
|
2023-02-08 09:13:28 +00:00
|
|
|
- dupword
|
|
|
|
- durationcheck
|
|
|
|
- errchkjson
|
|
|
|
- errname
|
|
|
|
- errorlint
|
|
|
|
- execinquery
|
|
|
|
- exhaustive
|
|
|
|
- exportloopref
|
|
|
|
- forcetypeassert
|
|
|
|
- ginkgolinter
|
|
|
|
- gocheckcompilerdirectives
|
|
|
|
- gochecknoglobals
|
|
|
|
- gochecknoinits
|
|
|
|
- gocognit
|
|
|
|
- goconst
|
|
|
|
- gocritic
|
|
|
|
- gocyclo
|
|
|
|
- godot
|
|
|
|
- godox
|
|
|
|
- goerr113
|
2022-04-25 10:51:42 +00:00
|
|
|
- gofmt
|
2023-02-08 09:13:28 +00:00
|
|
|
- gofumpt
|
|
|
|
- goheader
|
|
|
|
- goimports
|
|
|
|
- gomnd
|
|
|
|
- gomoddirectives
|
|
|
|
- gomodguard
|
|
|
|
- goprintffuncname
|
|
|
|
- gosec
|
|
|
|
- grouper
|
|
|
|
- importas
|
|
|
|
- interfacebloat
|
|
|
|
- ireturn
|
|
|
|
- lll
|
|
|
|
- loggercheck
|
|
|
|
- maintidx
|
|
|
|
- makezero
|
2022-04-25 10:51:42 +00:00
|
|
|
- misspell
|
2023-02-08 09:13:28 +00:00
|
|
|
- musttag
|
|
|
|
- nakedret
|
|
|
|
- nestif
|
|
|
|
- nilerr
|
|
|
|
- nilnil
|
|
|
|
- nlreturn
|
|
|
|
- noctx
|
|
|
|
- nolintlint
|
|
|
|
- nonamedreturns
|
|
|
|
- nosprintfhostport
|
|
|
|
- prealloc
|
|
|
|
- predeclared
|
|
|
|
- promlinter
|
|
|
|
- reassign
|
2022-04-25 10:51:42 +00:00
|
|
|
- revive
|
2023-02-08 09:13:28 +00:00
|
|
|
# - rowserrcheck
|
|
|
|
# - sqlclosecheck
|
|
|
|
# - structcheck
|
|
|
|
- stylecheck
|
|
|
|
- tagliatelle
|
|
|
|
- tenv
|
|
|
|
- testableexamples
|
|
|
|
- thelper
|
|
|
|
- tparallel
|
|
|
|
- unconvert
|
|
|
|
- unparam
|
|
|
|
- usestdlibvars
|
|
|
|
# - wastedassign
|
|
|
|
- whitespace
|
|
|
|
- wsl
|
2022-04-25 10:51:42 +00:00
|
|
|
fast: false
|
|
|
|
|
|
|
|
run:
|
|
|
|
timeout: 3m
|
|
|
|
|
|
|
|
linters-settings:
|
|
|
|
gofumpt:
|
|
|
|
extra-rules: true
|
2023-09-04 18:56:19 +00:00
|
|
|
ireturn:
|
|
|
|
allow:
|
|
|
|
- error
|
|
|
|
- backoff.BackOff
|