-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Error in Style/RedundantParentheses #3154
Comments
Just encountered the same issue.
|
bbatsov
added a commit
that referenced
this issue
May 26, 2016
[Fix #3154] Fix handling of () in RedundantParentheses
Neodelf
pushed a commit
to Neodelf/rubocop
that referenced
this issue
Oct 15, 2016
`Style/RedundantParentheses` doesn't crash when handling `()`.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior
Rubocop should just lint the file and not throw an error.
Actual behavior
An error occurs in the
Style/RedudantParenthesis
cop while linting the file, with the following error message:Steps to reproduce the problem
Create a test file with the following content:
Run
rubocop test.rb
RuboCop version
The text was updated successfully, but these errors were encountered: