2020-09-11 18:49:29 +03:00
|
|
|
run:
|
|
|
|
timeout: 5m
|
|
|
|
|
2019-12-06 13:41:59 +03:00
|
|
|
linters-settings:
|
2020-09-11 18:48:38 +03:00
|
|
|
gci:
|
|
|
|
local-prefixes: github.com/spf13/viper
|
2019-12-06 13:41:59 +03:00
|
|
|
golint:
|
2020-09-11 18:48:38 +03:00
|
|
|
min-confidence: 0
|
2019-12-06 13:41:59 +03:00
|
|
|
goimports:
|
|
|
|
local-prefixes: github.com/spf13/viper
|
|
|
|
|
|
|
|
linters:
|
2020-09-11 18:43:32 +03:00
|
|
|
disable-all: true
|
|
|
|
enable:
|
|
|
|
- bodyclose
|
|
|
|
- deadcode
|
|
|
|
- dogsled
|
|
|
|
- dupl
|
2021-06-16 04:01:53 +03:00
|
|
|
- durationcheck
|
2020-09-11 18:43:32 +03:00
|
|
|
- exhaustive
|
|
|
|
- exportloopref
|
2020-09-11 18:48:38 +03:00
|
|
|
- gci
|
2020-09-11 18:43:32 +03:00
|
|
|
- goconst
|
|
|
|
- gofmt
|
2021-06-16 04:02:27 +03:00
|
|
|
- gofumpt
|
2020-09-11 18:43:32 +03:00
|
|
|
- goimports
|
2021-06-16 04:01:53 +03:00
|
|
|
- gomoddirectives
|
2020-09-11 18:43:32 +03:00
|
|
|
- goprintffuncname
|
|
|
|
- govet
|
2021-06-16 04:01:53 +03:00
|
|
|
- importas
|
2020-09-11 18:43:32 +03:00
|
|
|
- ineffassign
|
2021-06-16 04:01:53 +03:00
|
|
|
- makezero
|
2020-09-11 18:43:32 +03:00
|
|
|
- misspell
|
|
|
|
- nakedret
|
2021-06-16 04:01:53 +03:00
|
|
|
- nilerr
|
2020-09-11 18:43:32 +03:00
|
|
|
- noctx
|
|
|
|
- nolintlint
|
|
|
|
- prealloc
|
2021-06-16 04:01:53 +03:00
|
|
|
- predeclared
|
|
|
|
- revive
|
2020-09-11 18:43:32 +03:00
|
|
|
- rowserrcheck
|
|
|
|
- sqlclosecheck
|
|
|
|
- staticcheck
|
|
|
|
- structcheck
|
|
|
|
- stylecheck
|
2021-06-16 04:01:53 +03:00
|
|
|
- tparallel
|
2020-09-11 18:43:32 +03:00
|
|
|
- typecheck
|
|
|
|
- unconvert
|
|
|
|
- unparam
|
|
|
|
- unused
|
|
|
|
- varcheck
|
2021-06-16 04:01:53 +03:00
|
|
|
- wastedassign
|
2020-09-11 18:43:32 +03:00
|
|
|
- whitespace
|
2019-12-06 13:41:59 +03:00
|
|
|
|
2020-09-11 18:43:32 +03:00
|
|
|
# fixme
|
2021-06-16 04:01:53 +03:00
|
|
|
# - cyclop
|
2020-09-11 18:43:32 +03:00
|
|
|
# - errcheck
|
2021-06-16 04:01:53 +03:00
|
|
|
# - errorlint
|
|
|
|
# - exhaustivestruct
|
|
|
|
# - forbidigo
|
|
|
|
# - forcetypeassert
|
2020-09-11 18:43:32 +03:00
|
|
|
# - gochecknoglobals
|
|
|
|
# - gochecknoinits
|
|
|
|
# - gocognit
|
|
|
|
# - gocritic
|
|
|
|
# - gocyclo
|
|
|
|
# - godot
|
|
|
|
# - gosec
|
|
|
|
# - gosimple
|
2021-06-16 04:01:53 +03:00
|
|
|
# - ifshort
|
2020-09-11 18:43:32 +03:00
|
|
|
# - lll
|
|
|
|
# - nlreturn
|
2021-06-16 04:01:53 +03:00
|
|
|
# - paralleltest
|
2020-09-11 18:43:32 +03:00
|
|
|
# - scopelint
|
2021-06-16 04:01:53 +03:00
|
|
|
# - thelper
|
|
|
|
# - wrapcheck
|
2020-01-16 21:37:50 +03:00
|
|
|
|
2020-09-11 18:43:32 +03:00
|
|
|
# unused
|
|
|
|
# - depguard
|
|
|
|
# - goheader
|
|
|
|
# - gomodguard
|
|
|
|
|
|
|
|
# don't enable:
|
|
|
|
# - asciicheck
|
|
|
|
# - funlen
|
|
|
|
# - godox
|
|
|
|
# - goerr113
|
|
|
|
# - gomnd
|
|
|
|
# - interfacer
|
|
|
|
# - maligned
|
|
|
|
# - nestif
|
|
|
|
# - testpackage
|
|
|
|
# - wsl
|