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
The text was updated successfully, but these errors were encountered:
pjg
changed the title
Invalid offense/autocorrect for Style/RedundantLineContinuation
Invalid offense/autocorrect for Style/RedundantLineContinuationFeb 29, 2024
…inuation`
Fixesrubocop#12726.
This PR fixes a false positive for `Style/RedundantLineContinuation`
when using line concatenation and calling a method with keyword arguments without parentheses.
Expected behavior
Not to flag the
Style/RedundantLineContinuation
offense.Actual behavior
Offense is flagged and incorrectly autocorrected.
Steps to reproduce the problem
Input:
This is flagged as:
Output after autocorrecting:
Which is no longer valid Ruby code.
RuboCop version
The text was updated successfully, but these errors were encountered: