Open bronson opened 7 years ago
That's coming from the stderr
output of reek
, does it work for you on the CLI?
Yes, it seems to work fine.
When the file doesn't contain a syntax error, everything runs with no output.
When I'm editing the file, reek might output:
$ reek --version
reek 4.4.2
$ reek bin/config.rb
bin/config.rb:5:8: error: unexpected token tDOT
bin/config.rb:5: unless .include?(branch)
bin/config.rb:5: ^
bin/config.rb: Parser::SyntaxError: unexpected token tDOT
Which is correct, but I'm in the middle of editing the file.
Hmm, maybe reek
has changed their output recently to show syntax errors differently?
@bronson how do you have the Linter package set up to run your different linters? If you have it set to run automatically as you type, this is what will happen. You're not the first person to report this sort of thing happening, and honestly at this point I'm thinking of having linter-reek only run when a file is saved, rather than following Linter's settings.
Just checked, I don't have it set to lint-as-you-type.
However, I DO have the atom/autosave plugin enabled (which I think is the default?) So my editors get saved whenever they lose focus, which can be quite often.
Sorry, nope. It's disabled by default.
But I really like it. I'd prefer to keep it enabled. :)
@bronson I'm going to work on a way to still alert the user to invalid syntax, but by showing a more severe version of the regular output of the linter.
While I'm editing code, I might temporarily have unbalanced parentheses... When I do, Reek starts hitting me with Atom errors, over and over.
Is there any way to make Reek stop doing this? Listing the errors at the bottom of the editor window is fine.