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:
|
2022-04-13 14:17:24 +03:00
|
|
|
sections:
|
|
|
|
- standard
|
|
|
|
- default
|
2022-12-12 16:17:28 +03:00
|
|
|
- prefix(git.internal/re/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:
|
2022-12-12 16:17:28 +03:00
|
|
|
local-prefixes: git.internal/re/viper
|
2019-12-06 13:41:59 +03:00
|
|
|
|
|
|
|
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
|
|
|
- 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
|
2021-09-22 12:09:26 +03:00
|
|
|
# - goconst
|
2020-09-11 18:43:32 +03:00
|
|
|
# - 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
|