2020-01-12 18:23:35 +01:00
|
|
|
linters:
|
2021-03-05 22:52:22 +01:00
|
|
|
enable:
|
2022-05-10 09:09:50 +02:00
|
|
|
- asciicheck
|
|
|
|
- bidichk
|
2021-03-05 22:59:09 +01:00
|
|
|
- bodyclose
|
2021-03-05 22:52:22 +01:00
|
|
|
- dogsled
|
2022-05-10 09:09:50 +02:00
|
|
|
- dupl
|
|
|
|
- durationcheck
|
|
|
|
- errcheck
|
|
|
|
- errchkjson
|
|
|
|
- errorlint
|
|
|
|
- exhaustive
|
|
|
|
- exportloopref
|
2021-03-05 22:52:22 +01:00
|
|
|
- funlen
|
|
|
|
- gochecknoglobals
|
|
|
|
- gochecknoinits
|
2022-05-10 09:09:50 +02:00
|
|
|
- gocognit
|
|
|
|
- goconst
|
2021-03-05 22:52:22 +01:00
|
|
|
- gocritic
|
2022-05-10 09:09:50 +02:00
|
|
|
- gocyclo
|
2021-03-05 22:52:22 +01:00
|
|
|
- godox
|
2022-05-10 09:09:50 +02:00
|
|
|
- gofmt
|
|
|
|
- goimports
|
|
|
|
- gomnd
|
|
|
|
- gomodguard
|
|
|
|
- gosec
|
|
|
|
- gosimple
|
|
|
|
- govet
|
|
|
|
- grouper
|
|
|
|
- importas
|
|
|
|
- ineffassign
|
|
|
|
- lll
|
|
|
|
- makezero
|
|
|
|
- misspell
|
2021-03-05 22:52:22 +01:00
|
|
|
- nakedret
|
2022-05-10 09:09:50 +02:00
|
|
|
- nestif
|
|
|
|
- nilerr
|
|
|
|
- nilnil
|
|
|
|
- nlreturn
|
2022-11-29 21:58:26 +01:00
|
|
|
- nolintlint
|
2022-11-03 23:47:31 +01:00
|
|
|
- nosprintfhostport
|
2021-03-05 22:52:22 +01:00
|
|
|
- prealloc
|
2022-05-10 09:09:50 +02:00
|
|
|
- predeclared
|
|
|
|
- revive
|
|
|
|
- sqlclosecheck
|
|
|
|
- staticcheck
|
|
|
|
- stylecheck
|
|
|
|
- tenv
|
|
|
|
- typecheck
|
|
|
|
- unconvert
|
|
|
|
- unparam
|
|
|
|
- unused
|
2022-11-29 21:58:26 +01:00
|
|
|
- usestdlibvars
|
2022-05-10 09:09:50 +02:00
|
|
|
- wastedassign
|
2021-03-05 22:52:22 +01:00
|
|
|
- whitespace
|
|
|
|
- wsl
|
|
|
|
disable:
|
|
|
|
- noctx
|
2022-09-03 22:37:04 +02:00
|
|
|
- contextcheck
|
2021-09-18 22:41:01 +02:00
|
|
|
- scopelint
|
2022-11-26 22:11:15 +01:00
|
|
|
- structcheck
|
|
|
|
- deadcode
|
|
|
|
- varcheck
|
2022-11-29 21:58:26 +01:00
|
|
|
- forbidigo
|
2023-08-31 14:47:30 +02:00
|
|
|
- gosmopolitan
|
2021-03-05 22:52:22 +01:00
|
|
|
disable-all: false
|
|
|
|
presets:
|
|
|
|
- bugs
|
|
|
|
- unused
|
|
|
|
fast: false
|
2020-01-12 18:23:35 +01:00
|
|
|
|
2022-05-10 09:09:50 +02:00
|
|
|
linters-settings:
|
|
|
|
gomnd:
|
|
|
|
ignored-numbers:
|
|
|
|
- '0666'
|
|
|
|
|
2020-01-12 18:23:35 +01:00
|
|
|
issues:
|
|
|
|
exclude-rules:
|
|
|
|
# Exclude some linters from running on tests files.
|
|
|
|
- path: _test\.go
|
|
|
|
linters:
|
|
|
|
- dupl
|
2023-04-17 18:21:56 +02:00
|
|
|
- funlen
|
|
|
|
- gochecknoglobals
|
2022-11-24 21:54:52 +01:00
|
|
|
- gosec
|