2021-12-07 12:31:39 +00:00
|
|
|
run:
|
|
|
|
timeout: 5m
|
|
|
|
|
|
|
|
linters-settings:
|
|
|
|
gci:
|
2022-05-02 14:05:18 +01:00
|
|
|
sections:
|
|
|
|
- standard
|
|
|
|
- default
|
|
|
|
- prefix(github.com/spf13/viper)
|
2021-12-07 12:31:39 +00:00
|
|
|
golint:
|
|
|
|
min-confidence: 0
|
|
|
|
goimports:
|
|
|
|
local-prefixes: github.com/spf13/viper
|
|
|
|
|
|
|
|
linters:
|
|
|
|
disable-all: true
|
|
|
|
enable:
|
|
|
|
- bodyclose
|
|
|
|
- dogsled
|
|
|
|
- dupl
|
|
|
|
- durationcheck
|
|
|
|
- exhaustive
|
|
|
|
- exportloopref
|
|
|
|
- gci
|
|
|
|
- gofmt
|
|
|
|
- gofumpt
|
|
|
|
- goimports
|
|
|
|
- gomoddirectives
|
|
|
|
- goprintffuncname
|
|
|
|
- govet
|
|
|
|
- importas
|
|
|
|
- ineffassign
|
|
|
|
- makezero
|
|
|
|
- misspell
|
|
|
|
- nakedret
|
|
|
|
- nilerr
|
|
|
|
- noctx
|
|
|
|
- nolintlint
|
|
|
|
- prealloc
|
|
|
|
- predeclared
|
|
|
|
- revive
|
|
|
|
- rowserrcheck
|
|
|
|
- sqlclosecheck
|
|
|
|
- staticcheck
|
|
|
|
- stylecheck
|
|
|
|
- tparallel
|
|
|
|
- typecheck
|
|
|
|
- unconvert
|
|
|
|
- unparam
|
|
|
|
- unused
|
|
|
|
- wastedassign
|
|
|
|
- whitespace
|
|
|
|
|
|
|
|
# fixme
|
|
|
|
# - cyclop
|
|
|
|
# - errcheck
|
|
|
|
# - errorlint
|
|
|
|
# - exhaustivestruct
|
|
|
|
# - forbidigo
|
|
|
|
# - forcetypeassert
|
|
|
|
# - gochecknoglobals
|
|
|
|
# - gochecknoinits
|
|
|
|
# - gocognit
|
2021-12-12 14:47:51 +00:00
|
|
|
# - goconst
|
2021-12-07 12:31:39 +00:00
|
|
|
# - gocritic
|
|
|
|
# - gocyclo
|
|
|
|
# - godot
|
|
|
|
# - gosec
|
|
|
|
# - gosimple
|
|
|
|
# - ifshort
|
|
|
|
# - lll
|
|
|
|
# - nlreturn
|
|
|
|
# - paralleltest
|
|
|
|
# - scopelint
|
|
|
|
# - thelper
|
|
|
|
# - wrapcheck
|
|
|
|
|
|
|
|
# unused
|
|
|
|
# - depguard
|
|
|
|
# - goheader
|
|
|
|
# - gomodguard
|
|
|
|
|
2023-06-05 09:15:05 +01:00
|
|
|
# deprecated
|
|
|
|
# - deadcode
|
|
|
|
# - structcheck
|
|
|
|
# - varcheck
|
|
|
|
|
2021-12-07 12:31:39 +00:00
|
|
|
# don't enable:
|
|
|
|
# - asciicheck
|
|
|
|
# - funlen
|
|
|
|
# - godox
|
|
|
|
# - goerr113
|
|
|
|
# - gomnd
|
|
|
|
# - interfacer
|
|
|
|
# - maligned
|
|
|
|
# - nestif
|
|
|
|
# - testpackage
|
|
|
|
# - wsl
|