2018-11-14 09:18:03 +00:00
|
|
|
[run]
|
|
|
|
deadline = "5m"
|
|
|
|
|
|
|
|
skip-files = [
|
|
|
|
"^old/.*",
|
2019-02-05 16:10:03 +00:00
|
|
|
"^acme/.*",
|
|
|
|
"^cluster/.*",
|
|
|
|
"^cmd/convert/.*",
|
|
|
|
"^h2c/.*",
|
|
|
|
"^integration/.*",
|
|
|
|
|
|
|
|
# "^cmd/traefik/.*",
|
|
|
|
# "^anonymize/.*",
|
|
|
|
# "^provider/.*",
|
|
|
|
# "^tracing/.*",
|
|
|
|
# "^safe/.*",
|
|
|
|
# "^h2c/.*",
|
|
|
|
# "^healthcheck/.*",
|
|
|
|
# "^middlewares/.*",
|
|
|
|
# "^server/.*",
|
2018-11-14 09:18:03 +00:00
|
|
|
]
|
|
|
|
|
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
|
2019-02-05 16:10:03 +00:00
|
|
|
min-occurrences = 4.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",
|
2019-02-05 16:10:03 +00:00
|
|
|
"gochecknoinits",
|
|
|
|
"gochecknoglobals",
|
|
|
|
"unparam",
|
|
|
|
"scopelint",
|
|
|
|
"goimports",
|
2018-11-14 09:18:03 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[issues]
|
|
|
|
max-per-linter = 0
|
|
|
|
max-same = 0
|
|
|
|
exclude = [
|
2019-02-05 16:10:03 +00:00
|
|
|
"field `(foo|fuu)` is unused",
|
2018-11-14 09:18:03 +00:00
|
|
|
"(.+) 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
|
|
|
|
]
|