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",
|
|
|
|
"possible misuse of unsafe.Pointer",
|
|
|
|
"cyclomatic complexity (.+) of func `NewDNSChallengeProviderByName` is high (.+)", # providers/dns/dns_providers.go
|
|
|
|
|
|
|
|
"`(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
|
|
|
]
|