Original: https://github.com/golang/lint
Golintx is a linter for Go source code.
- Support per-directory config files
- if a config file on lint-target directory does not exists, search files in ancestor directories recursively.
- exit(1) if any problem exists
- Support multi directories on command line
- ex: golintx $(glide novendor)
Golintx requires Go 1.6 or later.
go get -u github.com/haruyama/golintx/golintx
exclude {
// array of categories which golintx does not report
categories = ["comments"]
}
// array of initialisms
initialisms = [
"API",
"ASCII",
"CPU",
"CSS",
"DNS",
"EOF",
"GUID",
"HTML",
"HTTP",
"HTTPS",
// "ID",
"IP",
"JSON",
"LHS",
"QPS",
"RAM",
"RHS",
"RPC",
"SLA",
"SMTP",
"SQL",
"SSH",
"TCP",
"TLS",
"TTL",
"UDP",
"UI",
"UID",
"UUID",
// "URI",
// "URL",
"UTF8",
"VM",
"XML",
"XSRF",
"XSS",
]