diff --git a/.gometalinter.json b/.gometalinter.json index 90ac0015e90..f19055ec59e 100644 --- a/.gometalinter.json +++ b/.gometalinter.json @@ -3,6 +3,7 @@ "Enable": [ "gofmt", "misspell", + "staticcheck", "structcheck", "unconvert", "varcheck", diff --git a/staticcheck.conf b/staticcheck.conf new file mode 100644 index 00000000000..0f68e9b1154 --- /dev/null +++ b/staticcheck.conf @@ -0,0 +1,11 @@ +checks = ["all", "-SA4006"] +initialisms = ["ACL", "API", "ASCII", "CPU", "CSS", "DNS", + "EOF", "GUID", "HTML", "HTTP", "HTTPS", "ID", + "IP", "JSON", "QPS", "RAM", "RPC", "SLA", + "SMTP", "SQL", "SSH", "TCP", "TLS", "TTL", + "UDP", "UI", "GID", "UID", "UUID", "URI", + "URL", "UTF8", "VM", "XML", "XMPP", "XSRF", + "XSS"] +dot_import_whitelist = [] +http_status_code_whitelist = ["200", "400", "404", "500"] +