2018-09-24 19:07:20 +00:00
|
|
|
[run]
|
2018-12-06 21:50:17 +00:00
|
|
|
deadline = "5m"
|
|
|
|
skip-files = []
|
2018-09-24 19:07:20 +00:00
|
|
|
|
|
|
|
[linters-settings]
|
|
|
|
|
|
|
|
[linters-settings.govet]
|
|
|
|
check-shadowing = true
|
|
|
|
|
|
|
|
[linters-settings.gocyclo]
|
2018-12-06 21:50:17 +00:00
|
|
|
min-complexity = 12.0
|
2018-09-24 19:07:20 +00:00
|
|
|
|
|
|
|
[linters-settings.maligned]
|
|
|
|
suggest-new = true
|
|
|
|
|
|
|
|
[linters-settings.goconst]
|
2018-12-06 21:50:17 +00:00
|
|
|
min-len = 3.0
|
2018-09-24 19:07:20 +00:00
|
|
|
min-occurrences = 3.0
|
|
|
|
|
|
|
|
[linters-settings.misspell]
|
|
|
|
locale = "US"
|
|
|
|
|
|
|
|
[linters]
|
|
|
|
enable-all = true
|
|
|
|
disable = [
|
|
|
|
"maligned",
|
|
|
|
"lll",
|
|
|
|
"gas",
|
|
|
|
"dupl",
|
|
|
|
"prealloc",
|
2018-12-06 21:50:17 +00:00
|
|
|
"scopelint",
|
2018-09-24 19:07:20 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[issues]
|
2018-12-06 21:50:17 +00:00
|
|
|
exclude-use-default = false
|
2018-09-24 19:07:20 +00:00
|
|
|
max-per-linter = 0
|
|
|
|
max-same = 0
|
|
|
|
exclude = [
|
2018-12-06 21:50:17 +00:00
|
|
|
"Error return value of (.+) is not checked",
|
|
|
|
"exported (type|method|function) (.+) should have comment or be unexported",
|
|
|
|
"cyclomatic complexity (.+) of func `NewDNSChallengeProviderByName` is high (.+)", # providers/dns/dns_providers.go
|
2019-01-02 19:45:17 +00:00
|
|
|
"string `(lego\\.wtf|manhattan)` has (\\d+) occurrences, make it a constant", #providers/dns/gcloud/googlecloud_test.go
|
2018-12-06 21:50:17 +00:00
|
|
|
|
2019-02-06 17:15:53 +00:00
|
|
|
"(dnsHelp|createRenew\\$1|createRun\\$1|run) - result 0 \\(error\\) is always nil", # cmd/
|
2018-12-06 21:50:17 +00:00
|
|
|
"`(tlsFeatureExtensionOID|ocspMustStapleFeature)` is a global variable", # certcrypto/crypto.go
|
|
|
|
"`(defaultNameservers|recursiveNameservers|dnsTimeout|fqdnToZone|muFqdnToZone)` is a global variable", # challenge/dns01/nameserver.go
|
|
|
|
"`idPeAcmeIdentifierV1` is a global variable", # challenge/tlsalpn01/tls_alpn_challenge.go
|
|
|
|
"`Logger` is a global variable", # log/logger.go
|
|
|
|
"`version` is a global variable", # cli.go
|
|
|
|
"`load` is a global variable", # e2e/challenges_test.go
|
|
|
|
"`envTest` is a global variable", # providers/dns/**/*_test.go
|
|
|
|
"`(tldsMock|testCases)` is a global variable", # providers/dns/namecheap/namecheap_test.go
|
|
|
|
"`(errorClientErr|errorStorageErr|egTestAccount)` is a global variable", # providers/dns/acmedns/acmedns_test.go
|
|
|
|
"`memcachedHosts` is a global variable", # providers/http/memcached/memcached_test.go
|
2018-09-24 19:07:20 +00:00
|
|
|
]
|