50fbc2eec2
* CI: use staticcheck for linting This commit switches the linter for Go code from golint to staticcheck. Golint has been deprecated since last year and staticcheck is a recommended replacement. Signed-off-by: Lucas Servén Marín <lserven@gmail.com> * revendor Signed-off-by: Lucas Servén Marín <lserven@gmail.com> * cmd,pkg: fix lint warnings Signed-off-by: Lucas Servén Marín <lserven@gmail.com>
15 lines
622 B
Plaintext
15 lines
622 B
Plaintext
checks = ["all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022", "-ST1023"]
|
|
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", "SIP", "RTP", "AMQP", "DB", "TS"]
|
|
dot_import_whitelist = [
|
|
"github.com/mmcloughlin/avo/build",
|
|
"github.com/mmcloughlin/avo/operand",
|
|
"github.com/mmcloughlin/avo/reg",
|
|
]
|
|
http_status_code_whitelist = ["200", "400", "404", "500"]
|