We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This snippet:
my_method :arg1, arg2: proc { # assume a long proc that warrants the use of multiple lines }, arg3: :another_value
is being auto corrected to:
my_method :arg1, arg2: proc do # assume a long proc that warrants the use of multiple lines end, arg3: :another_value
which raises a syntax error (due to the precedence differences between {} and do end).
{}
do
end
The text was updated successfully, but these errors were encountered:
Indeed. We should check for AST changes before doing such auto-corrections. @jonas054 Would you take care of this?
Sorry, something went wrong.
Sure.
5027e5a
Merge pull request #1377 from jonas054/1350_autocorrect_blocks
b152eac
[Fix #1350] Check that Blocks cop doesn't create syntax errors
jonas054
No branches or pull requests
This snippet:
is being auto corrected to:
which raises a syntax error (due to the precedence differences between
{}
anddo
end
).The text was updated successfully, but these errors were encountered: