5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-12-28 17:05:39 +00:00
matterbridge/vendor/github.com/spf13/viper/.golangci.yaml

109 lines
2.2 KiB
YAML
Raw Normal View History

2021-06-16 19:00:49 +00:00
run:
timeout: 5m
2020-01-09 20:02:56 +00:00
linters-settings:
2021-06-16 19:00:49 +00:00
gci:
2022-04-25 21:50:10 +00:00
sections:
- standard
- default
- prefix(github.com/spf13/viper)
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
- unnamedResult
2020-01-09 20:02:56 +00:00
golint:
2021-06-16 19:00:49 +00:00
min-confidence: 0
2020-01-09 20:02:56 +00:00
goimports:
local-prefixes: github.com/spf13/viper
linters:
2021-06-16 19:00:49 +00:00
disable-all: true
enable:
- bodyclose
- dogsled
- dupl
- durationcheck
- exhaustive
- exportloopref
- gci
- gocritic
- godot
2021-06-16 19:00:49 +00:00
- 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
# - goconst
2021-06-16 19:00:49 +00:00
# - gocyclo
# - gosec
# - gosimple
# - ifshort
# - lll
# - nlreturn
# - paralleltest
# - scopelint
# - thelper
# - wrapcheck
2020-01-09 20:02:56 +00:00
2021-06-16 19:00:49 +00:00
# unused
# - depguard
# - goheader
# - gomodguard
2020-05-23 22:06:21 +00:00
# deprecated
# - deadcode
# - structcheck
# - varcheck
2021-06-16 19:00:49 +00:00
# don't enable:
# - asciicheck
# - funlen
# - godox
# - goerr113
# - gomnd
# - interfacer
# - maligned
# - nestif
# - testpackage
# - wsl