It is a great tool to run before you send your commit to the repository(maybe you can use git hook).
there is another option gometalinter but golangci-lint is faster than gometalinter.
Linters Runner for Go. 5x faster than gometalinter. Nice colored output. Can report only new issues. Fewer false-positives. Yaml/toml config.
GolangCI-Lint has integrations with VS Code, GNU Emacs, Sublime Text.
Sponsored by GolangCI.com: SaaS service for running linters on Github pull requests. Free for Open Source.
- Trusted By
- Quick Start
- Editor Integration
- Supported Linters
- False Positives
- Future Plans
- Contact Information
Short 1.5 min video demo of analyzing beego
Most installations are done for CI (travis, circleci etc). 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
--enable-all and a new linter is added or even without
--enable-all: when one upstream linter
It's highly recommended…
To run the tools is pretty simple, you need to run:
golangci-lint run ./...
If you want to use docker, the only thing you need to do is configure the volume to use your project path.
docker run --rm -it -v $GOPATH/src/github.com/golangci/golangci-lint:/go/src/github.com/golangci/golangci-lint golangci-lint run ./...
that's all folks, I hope it can be useful to you =)