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/RedundantParentheses false negatives #8379
Comments
There are so many cops that it is hard to remember all of them 😄 https://github.com/rubocop-hq/rubocop/blob/master/lib/rubocop/cop/style/redundant_parentheses.rb It handles the first case and many more. Not sure if the second case is popular enough to worth implementing? |
Good find.
Clearly it does not as
It might not be popular, but it can happen after auto-correcting (especially after #8378), so it would definitely be nice to enhance |
|
🤦♂️my bad, sorry, you're right. |
It would be nice to refactor
( literal )
=>literal
, and"...#{( anything )}..."
to"...#{ anything }..."
@fatkodima will probably handle this; let him know if you'd like to do it.
Noticed because of #8378
The text was updated successfully, but these errors were encountered: