Skip to content
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

AmbigousRegexpLiteral autocorrect results to syntax error when multiple methods without paretheses #10002

Closed
jlahtinen opened this issue Aug 11, 2021 · 0 comments · Fixed by #10003
Labels

Comments

@jlahtinen
Copy link

0dedb00 contains spec with suggested (probably wrong) correction.

puts line.grep /pattern/ results to puts(line.grep /pattern/)) which is syntax error, unexpected ')', expecting end-of-input

@koic koic added the bug label Aug 11, 2021
koic added a commit to koic/rubocop that referenced this issue Aug 11, 2021
…egexpLiteral`

Fixes rubocop#10002.

This PR fixes an incorrect auto-correct for `Lint/AmbigousRegexpLiteral`
when using nested method arguments without parentheses.
dvandersluis added a commit that referenced this issue Aug 11, 2021
…t_ambiguous_regexp_literal

[Fix #10002] Fix an incorrect auto-correct for `Lint/AmbigousRegexpLiteral`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants