traefik/.golangci.toml

48 lines
969 B
TOML
Raw Normal View History

2018-11-14 09:18:03 +00:00
[run]
deadline = "5m"
skip-files = [
"^old/.*",
]
2018-08-06 18:00:03 +00:00
[linters-settings]
[linters-settings.govet]
check-shadowing = true
[linters-settings.golint]
min-confidence = 0.0
[linters-settings.gocyclo]
min-complexity = 22.0
[linters-settings.maligned]
suggest-new = true
[linters-settings.goconst]
2018-11-14 09:18:03 +00:00
min-len = 3.0
min-occurrences = 3.0
2018-08-06 18:00:03 +00:00
[linters-settings.misspell]
locale = "US"
[linters]
enable-all = true
disable = [
2018-11-14 09:18:03 +00:00
"maligned",
"lll",
"gas",
"dupl",
"prealloc",
]
[issues]
max-per-linter = 0
max-same = 0
exclude = [
"(.+) is deprecated:",
"cyclomatic complexity (\\d+) of func `\\(\\*Builder\\)\\.buildConstructor` is high", #alt/server/middleware/middlewares.go
"`logger` can be `github.com/containous/traefik/vendor/github.com/stretchr/testify/assert.TestingT`", # alt/middlewares/recovery/recovery.go:
"`fn` can be `net/http.Handler`", # alt/server/alice/chain.go
]