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
Style/SymbolProc auto-correct breaking syntax #2588
Comments
The extra comma is actually the one which was already there, after Thinking about how to resolve this... |
I have an idea. |
Wow... I totally copy and pasted that example out of production code and didn't notice the comma after |
Just pushing a fix to my open PR. |
@alexdowad Wow, that is what I call a quick response! Thanks for your efforts 👍 (and bonus points for the title of your PR ^^) |
Reproduction
Using the following test file (dubbed
rubocop_test.rb
):Run
rubocop -a rubocop_test.rb
Expected
A valid ruby file, with fewer offenes.
Actual
The syntax gets messed up by the
Style/SymbolProc
rule:The extra comma after the
&:text
parameter is breaking the syntax.The text was updated successfully, but these errors were encountered: