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