Closed dominikh closed 8 years ago
gometalinter streams messages as soon as it sees them, by design. In order to coalesce it would need to buffer them. The streaming behaviour is desirable and the downside of having a few duplicated mesages is not high enough to lose that feature.
I should say that I'm not actually opposed to supporting this via a flag, as with --sort
(which buffers).
Okay. I'll send a PR later.
@dominikh Did you send the PR? Can't find it.
@casimir I'm sorry, no I haven't.
@dominikh no problem just needed it. If I can I'll send a PR soon then.
When running on invalid code (that doesn't typecheck or has syntax errors), most tools will output the same error, For example:
This will cause editors to display multiple errors for a line of code. It would be great if gometalinter could coalesce these errors into a single one. Either something like this:
or even without the list of linters at the end.