Skip to content

haruyama/golintx

 
 

Repository files navigation

wercker status

Original: https://github.com/golang/lint

Golintx is a linter for Go source code.

Differences From Original golint

  • 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)

Installation

Golintx requires Go 1.6 or later.

go get -u github.com/haruyama/golintx/golintx

Config File (.golintx.hcl)

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",
]

About

This is a linter for Go source code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 97.9%
  • Emacs Lisp 2.1%