47 lines
969 B
TOML
47 lines
969 B
TOML
[run]
|
|
deadline = "5m"
|
|
|
|
skip-files = [
|
|
"^old/.*",
|
|
]
|
|
|
|
[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]
|
|
min-len = 3.0
|
|
min-occurrences = 3.0
|
|
|
|
[linters-settings.misspell]
|
|
locale = "US"
|
|
|
|
[linters]
|
|
enable-all = true
|
|
disable = [
|
|
"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
|
|
]
|