You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…nterpolation`
Fixesrubocop#8835.
This PR fixes an incorrect autocorrect for `Style/RedundantInterpolation`
when using string interpolation for non-operator methods.
Expected behavior
Auto-corrected
"#{number}"
=>number.to_s
Actual behavior
Auto-corrected
"#{number}"
=>(number).to_s
Auto-corrected code violates
Style/RedundantParentheses
cop.Steps to reproduce the problem
Run
RuboCop version
The text was updated successfully, but these errors were encountered: