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
|
|
|
|
- prefix(github.com/spf13/viper)
|
2023-11-30 18:45:20 +03:00
|
|
|
gocritic:
|
|
|
|
# Enable multiple checks by tags. See "Tags" section in https://github.com/go-critic/go-critic#usage.
|
|
|
|
enabled-tags:
|
|
|
|
- diagnostic
|
|
|
|
- experimental
|
|
|
|
- opinionated
|
|
|
|
- style
|
|
|
|
disabled-checks:
|
|
|
|
- importShadow
|
2023-12-01 22:51:58 +03:00
|
|
|
- unnamedResult
|
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
|
|
|
|
- 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
|
2023-11-30 18:45:20 +03:00
|
|
|
- gocritic
|
2023-10-09 17:52:53 +03:00
|
|
|
- godot
|
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
|
|
|
|
- stylecheck
|
2021-06-16 04:01:53 +03:00
|
|
|
- tparallel
|
2020-09-11 18:43:32 +03:00
|
|
|
- typecheck
|
|
|
|
- unconvert
|
|
|
|
- unparam
|
|
|
|
- unused
|
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
|
|
|
# - gocyclo
|
|
|
|
# - 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
|
|
|
|
|
2023-04-06 11:57:10 +03:00
|
|
|
# deprecated
|
|
|
|
# - deadcode
|
|
|
|
# - structcheck
|
|
|
|
# - varcheck
|
|
|
|
|
2020-09-11 18:43:32 +03:00
|
|
|
# don't enable:
|
|
|
|
# - asciicheck
|
|
|
|
# - funlen
|
|
|
|
# - godox
|
|
|
|
# - goerr113
|
|
|
|
# - gomnd
|
|
|
|
# - interfacer
|
|
|
|
# - maligned
|
|
|
|
# - nestif
|
|
|
|
# - testpackage
|
|
|
|
# - wsl
|