-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs/Syntax.md is missing #1291
Comments
It seems that bug was introduced in #1220 |
Thanks, @x3qt, we'll look into this. |
I think this is not as much a missing docs file as a case that shouldn’t get to the point of reporting smells, but rather blow up with a syntax error. (In this particular case we’re using a Ruby 2.4 parser to parse a Ruby 2.5 source, and that’s the culprit, but in general I wouldn’t consider syntax errors as smells.) |
@chastell I think that makes sense since we handle encoding errors that way too. |
@troessner wdyt? |
FYI I'm seeing smells related to this check on codeclimate, but not locally. We're using the latest release version with Ruby 2.5 |
@krasnoukhov could you please c&p the offending code here so we can reproduce it? |
@troessner Sure thing, I think a very minimal code that triggers the check could look like this: [].each do |x|
puts x
rescue
end |
@krasnoukhov this should be fixed with Reek 5 which we'll also push on CodeClimate. |
@troessner Wait, what? We do the pushing to CodeClimate? |
@mvz as discussed in the other thread recently we dont apparently :-/ |
@mvz wdyt about removing the syntax detector completely? Right now i cant even recall why we added that in the first place :) |
To the actual problem, this code from above: [].each do |x|
puts x
rescue
end works for me with Reek 4.8.1 and Ruby 2.3.1:
Regarding:
I just checked, we're using 2.5 at least now. @x3qt could you quickly check if that problem still exists for you with the latest Reek version? |
Yes, that makes more sense than treating it like an artificial code smell. |
@troessner ok, I'll see about taking over #1355. |
Description:
Usage of do/end blocks with ensure/rescue/else throws syntax error which points to non existent page.
Environment:
The text was updated successfully, but these errors were encountered: