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
This problem is especially noticeable when using EnforcedStyle: double_quotes for Style/StringLiterals, as it corrects strings and symbols inconsistently.
To reproduce
With default settings, run RuboCop on:
:"foo#{"sar".sub("s","b")}"
Expected behavior
A Style/StringLiteralsInInterpolation warning for each string inside of the interpolation.
Actual behavior
A Style/StringLiterals warning for each string inside of the interpolation.
This problem is especially noticeable when using
EnforcedStyle: double_quotes
forStyle/StringLiterals
, as it corrects strings and symbols inconsistently.To reproduce
With default settings, run RuboCop on:
:"foo#{"sar".sub("s", "b")}"
Expected behavior
A
Style/StringLiteralsInInterpolation
warning for each string inside of the interpolation.Actual behavior
A
Style/StringLiterals
warning for each string inside of the interpolation.RuboCop version
The text was updated successfully, but these errors were encountered: