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

RedundantParentheses auto-correct mangles rescue(Error) #2721

Closed
rrosenblum opened this issue Jan 26, 2016 · 0 comments · Fixed by #2725
Closed

RedundantParentheses auto-correct mangles rescue(Error) #2721

rrosenblum opened this issue Jan 26, 2016 · 0 comments · Fixed by #2725

Comments

@rrosenblum
Copy link
Contributor

The cop will change

begin
  method
rescue(Error)
end

to

begin
  method
rescueError
end

This is happening on 0.36.0 and master. I am looking into a fix for this.

rrosenblum added a commit to rrosenblum/rubocop that referenced this issue Feb 1, 2016
bbatsov added a commit that referenced this issue Feb 1, 2016
[Fix #2721] Autocorrect parentheses in rescue call
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant