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
Fixes#11844.
This PR fixes a false positive for `Style/RedundantLineContinuation` when
using line concatenation for assigning a return value and without argument parentheses.
Expected behavior
Running
rubocop --only Style/RedundantLineContinuation
on the following code:should result in no offenses detected:
and running
rubocop --only Style/RedundantLineContinuation --autocorrect
should not touch the file.Actual behavior
Running
rubocop --only Style/RedundantLineContinuation
flags the line continuation as being redundant (which it isn't):and running safe autocorrections on it changes it to invalid syntax:
which results in
RuboCop version
While this looks a lot like a duplicate of #11783, the fix for that issue is already in 1.50.2 as far as I can tell.
The text was updated successfully, but these errors were encountered: