spf13--viper/.golangci.yaml

109 lines
2.2 KiB
YAML
Raw Normal View History

run:
timeout: 5m
2019-12-06 10:41:59 +00:00
linters-settings:
gci:
sections:
- standard
- default
- prefix(github.com/spf13/viper)
2023-11-30 15:45:20 +00: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 19:51:58 +00:00
- unnamedResult
2019-12-06 10:41:59 +00:00
golint:
min-confidence: 0
2019-12-06 10:41:59 +00:00
goimports:
local-prefixes: github.com/spf13/viper
linters:
disable-all: true
enable:
- bodyclose
- dogsled
- dupl
- durationcheck
- exhaustive
- exportloopref
- gci
2023-11-30 15:45:20 +00:00
- gocritic
2023-10-09 14:52:53 +00:00
- godot
- 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
2019-12-06 10:41:59 +00:00
# fixme
# - cyclop
# - errcheck
# - errorlint
# - exhaustivestruct
# - forbidigo
# - forcetypeassert
# - gochecknoglobals
# - gochecknoinits
# - gocognit
# - goconst
# - gocyclo
# - gosec
# - gosimple
# - ifshort
# - lll
# - nlreturn
# - paralleltest
# - scopelint
# - thelper
# - wrapcheck
2020-01-16 18:37:50 +00:00
# unused
# - depguard
# - goheader
# - gomodguard
# deprecated
# - deadcode
# - structcheck
# - varcheck
# don't enable:
# - asciicheck
# - funlen
# - godox
# - goerr113
# - gomnd
# - interfacer
# - maligned
# - nestif
# - testpackage
# - wsl