viper/.golangci.yml

77 lines
1.4 KiB
YAML
Raw Normal View History

run:
timeout: 5m
2019-12-06 13:41:59 +03:00
linters-settings:
gci:
local-prefixes: github.com/spf13/viper
2019-12-06 13:41:59 +03:00
golint:
min-confidence: 0
2019-12-06 13:41:59 +03:00
goimports:
local-prefixes: github.com/spf13/viper
linters:
disable-all: true
enable:
- bodyclose
- deadcode
- dogsled
- dupl
- exhaustive
- exportloopref
- gci
- goconst
- gofmt
- gofumpt
- goimports
- golint
- goprintffuncname
- govet
- ineffassign
- misspell
- nakedret
- noctx
- nolintlint
- prealloc
- rowserrcheck
- sqlclosecheck
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
- varcheck
- whitespace
2019-12-06 13:41:59 +03:00
# fixme
# - errcheck
# - gochecknoglobals
# - gochecknoinits
# - gocognit
# - gocritic
# - gocyclo
# - godot
# - gosec
# - gosimple
# - lll
# - nlreturn
# - scopelint
2020-01-16 21:37:50 +03:00
# unused
# - depguard
# - goheader
# - gomodguard
# don't enable:
# - asciicheck
# - funlen
# - godox
# - goerr113
# - gomnd
# - interfacer
# - maligned
# - nestif
# - testpackage
# - wsl