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
False positive for Layout/SpaceAroundKeyword
when using ParserEngine: parser_prism
#12829
Comments
(I also get |
Another one, which is probably the same underlying cause:
Fails with |
(this is is Prism 0.24.0, I'll check if it still happens on 0.25.0). |
Yes, still happens with 0.25.0. |
Both of these are problems with |
Thanks @kddnewton, I'll look into fixing that in Prism. @koic I'm not sure if you want to keep this open for tracking, feel free to close it. |
Working on a fix in ruby/prism#2694 |
@andyw8 this may have been fixed in the latest version of prism, can you check? |
Indeed it is, I updated the core branch earlier. |
Steps to reproduce the problem
Create a file containing:
RuboCop fails with
Layout/SpaceAroundKeyword: Space before keyword do is missing
.This might relate to some underlying issue in
prism
, I haven't investigated yet.RuboCop version
The text was updated successfully, but these errors were encountered: