gometalinter relies on underlying linters to detect issues in source code. If your issue seems to be related to an underlying linter, please report an issue against that linter rather than gometalinter. For a full list of linters and their repositories please see the README.
Please send a PR. We use GVT. It should be as simple as:
go get github.com/FiloSottile/gvt
cd _linters
gvt update <linter>
git add <paths>
Sometimes gometalinter will not report issues that you think it should. There are three things to try in that case:
go get -u github.com/alecthomas/gometalinter
gometalinter --install
If you're lucky, this will fix the problem.
If that doesn't help, the problem may be elsewhere (in no particular order):
- Upstream linter has changed its output or semantics.
- gometalinter is not invoking the tool correctly.
- gometalinter regular expression matches are not correct for a linter.
- Linter is exceeding the deadline.
To find out what's going on run in debug mode:
gometalinter --debug
This will show all output from the linters and should indicate why it is failing.
The output of gometalinter --debug
should show the exact commands gometalinter
is running. Run these commands from the command line to determine if the linter
or gometaliner is at fault.
Failing all else, if the problem looks like a bug please file an issue and
include the output of gometalinter --debug