Closed vkd closed 6 years ago
Are you sure that's what's happening? It should already be filtering, by passing -I <filename>
to gometalinter
.
Yes, I retried now:
⇒ gometalinter -I spot.go --fast
...
campaign.go:392:13:warning: 2 other occurrence(s) of "name" found in: application.go:169:13 spot.go:283:13 (goconst)
application.go:169:13:warning: 2 other occurrence(s) of "name" found in: campaign.go:392:13 spot.go:283:13 (goconst)
spot.go:283:13:warning: 2 other occurrence(s) of "name" found in: campaign.go:392:13 application.go:169:13 (goconst)
I think because `gometalinter' have match by regexp:
-I, --include=REGEXP ... Include messages matching these regular expressions.
And at the same time string spot.go
exists in the error line.
But I have more clear fix of this problem - using -I ^spot.go
. What you think?
Ah of course. Yes, that sounds like a preferable solution, thanks!
Fixed by #20
goconst
linter return error not only by current file, and then SublimeLinter crash on it.From: https://github.com/SublimeLinter/SublimeLinter/issues/1256#issuecomment-381920068