GolangCI-Lint
GolangCI-Lint is a linters aggregator. It's fast: on average 5 times faster than gometalinter.
It's easy to integrate and use, has nice output and has a minimum number of false positives. It supports go modules.
GolangCI-Lint has integrations with VS Code, GNU Emacs, Sublime Text.
Follow the news and releases on our twitter and our blog.
Sponsored by GolangCI.com: SaaS service for running linters on GitHub pull requests. Free for Open Source.
Demo
Short 1.5 min video demo of analyzing beego.
Install
Binary
Most installations are done for CI (e.g. Travis CI, CircleCI). It's important to have reproducible CI:
don't start to fail all builds at the same time. With golangci-lint this can happen if you
use deprecated option --enable-all
and a new linter is added or even without --enable-all
: when one upstream linter is upgraded.
It's highly recommended to install a specific version of golangci-lint available on the releases page.
Here is the recommended way to install golangci-lint v1.23.6:
# binary will be $(go env GOPATH)/bin/golangci-lint
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh