2018-09-24 21:07:20 +02:00
|
|
|
[run]
|
2018-12-06 23:50:17 +02:00
|
|
|
deadline = "5m"
|
|
|
|
skip-files = []
|
2018-09-24 21:07:20 +02:00
|
|
|
|
|
|
|
[linters-settings]
|
|
|
|
|
|
|
|
[linters-settings.govet]
|
|
|
|
check-shadowing = true
|
|
|
|
|
|
|
|
[linters-settings.gocyclo]
|
2018-12-06 23:50:17 +02:00
|
|
|
min-complexity = 12.0
|
2018-09-24 21:07:20 +02:00
|
|
|
|
|
|
|
[linters-settings.maligned]
|
|
|
|
suggest-new = true
|
|
|
|
|
|
|
|
[linters-settings.goconst]
|
2018-12-06 23:50:17 +02:00
|
|
|
min-len = 3.0
|
2018-09-24 21:07:20 +02:00
|
|
|
min-occurrences = 3.0
|
|
|
|
|
|
|
|
[linters-settings.misspell]
|
|
|
|
locale = "US"
|
|
|
|
|
|
|
|
[linters]
|
|
|
|
enable-all = true
|
|
|
|
disable = [
|
|
|
|
"maligned",
|
|
|
|
"lll",
|
|
|
|
"gas",
|
|
|
|
"dupl",
|
|
|
|
"prealloc",
|
2018-12-06 23:50:17 +02:00
|
|
|
"scopelint",
|
2018-09-24 21:07:20 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[issues]
|
2018-12-06 23:50:17 +02:00
|
|
|
exclude-use-default = false
|
2018-09-24 21:07:20 +02:00
|
|
|
max-per-linter = 0
|
2019-02-18 14:42:10 +02:00
|
|
|
max-same-issues = 0
|
2018-09-24 21:07:20 +02:00
|
|
|
exclude = [
|
2019-02-18 14:28:19 +02:00
|
|
|
"Error return value of .((os\\.)?std(out|err)\\..*|.*Close|.*Flush|os\\.Remove(All)?|.*printf?|os\\.(Un)?Setenv). is not checked",
|
2018-12-06 23:50:17 +02:00
|
|
|
"exported (type|method|function) (.+) should have comment or be unexported",
|
2018-09-24 21:07:20 +02:00
|
|
|
]
|
2019-02-18 14:28:19 +02:00
|
|
|
[[issues.exclude-rules]]
|
|
|
|
path = "providers/dns/dns_providers.go"
|
|
|
|
linters = ["gocyclo"]
|
|
|
|
[[issues.exclude-rules]]
|
|
|
|
path = "providers/dns/gcloud/googlecloud_test.go"
|
|
|
|
text = "string `(lego\\.wtf|manhattan)` has (\\d+) occurrences, make it a constant"
|
|
|
|
[[issues.exclude-rules]]
|
|
|
|
path = "providers/dns/zoneee/zoneee_test.go"
|
|
|
|
text = "string `(bar|foo)` has (\\d+) occurrences, make it a constant"
|
|
|
|
[[issues.exclude-rules]]
|
|
|
|
path = "certcrypto/crypto.go"
|
|
|
|
text = "`(tlsFeatureExtensionOID|ocspMustStapleFeature)` is a global variable"
|
|
|
|
[[issues.exclude-rules]]
|
|
|
|
path = "challenge/dns01/nameserver.go"
|
|
|
|
text = "`(defaultNameservers|recursiveNameservers|dnsTimeout|fqdnToZone|muFqdnToZone)` is a global variable"
|
|
|
|
[[issues.exclude-rules]]
|
|
|
|
path = "challenge/tlsalpn01/tls_alpn_challenge.go"
|
|
|
|
text = "`idPeAcmeIdentifierV1` is a global variable"
|
|
|
|
[[issues.exclude-rules]]
|
|
|
|
path = "log/logger.go"
|
|
|
|
text = "`Logger` is a global variable"
|
|
|
|
[[issues.exclude-rules]]
|
|
|
|
path = "cmd/lego/main.go"
|
|
|
|
text = "`version` is a global variable"
|
|
|
|
[[issues.exclude-rules]]
|
|
|
|
path = "e2e/(dnschallenge/)?[\\d\\w]+_test.go"
|
|
|
|
text = "`load` is a global variable"
|
|
|
|
[[issues.exclude-rules]]
|
|
|
|
path = "providers/dns/([\\d\\w]+/)*[\\d\\w]+_test.go"
|
|
|
|
text = "`envTest` is a global variable"
|
|
|
|
[[issues.exclude-rules]]
|
|
|
|
path = "providers/dns/namecheap/namecheap_test.go"
|
|
|
|
text = "`(tldsMock|testCases)` is a global variable"
|
|
|
|
[[issues.exclude-rules]]
|
|
|
|
path = "providers/dns/acmedns/acmedns_test.go"
|
|
|
|
text = "`(errorClientErr|errorStorageErr|egTestAccount)` is a global variable"
|
|
|
|
[[issues.exclude-rules]]
|
|
|
|
path = "providers/http/memcached/memcached_test.go"
|
|
|
|
text = "`memcachedHosts` is a global variable"
|