I'm writing some Javascript, and I'm getting linter errors, like this one:
Extra semicolon. [Error/semi]
If I run :ALEInfo, I get this output:
Current Filetype: javascript
Available Linters: ['eslint', 'flow', 'jscs', 'jshint']
Enabled Linters: ['eslint', 'flow', 'jscs', 'jshint']
How can I tell which one of eslint, flow, jscs or jshint is giving me this error? The error message itself doesn't tell me. I would like the error message to prefix with the name of the linter, for instance:
eslint: Extra semicolon. [Error/semi]
I do this in my .vimrc:
let g:ale_echo_msg_format = '%linter% says %s'
Thanks so much @mvolkmann . That solves the issue for me, although I wonder if it should be default behaviour.
https://github.com/w0rp/ale#faq-echo-format The FAQ mentions how to configure this.
I wonder about changing the default. It might make sense to include the linter name in there. I wouldn't want to annoy anyone who expects the current message.
I wish there was an easy way to survey users of a Vim plugin for their opinion on changes like that.
I'll stick with the current defaults, and the format can be configured. I don't want to surprise anyone by changing it, at least not until version 2.0.
I see this is an old conversation, but I would vote for changing it to say which linter. Particularly when looking at a file for which linters aren't specified, and so every linter runs, it makes it difficult to figure out which linter is complaining and needs its settings modified.
Most helpful comment
I do this in my .vimrc:
let g:ale_echo_msg_format = '%linter% says %s'