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
$ ruby -e 'puts "a = b \\\n || c"' | bundle exec rubocop --stdin test.rb --only Style/RedundantLineContinuation
Inspecting 1 file
C
Offenses:
test.rb:1:7: C: [Correctable] Style/RedundantLineContinuation: Redundant line continuation.
a = b \ ...
^
$ ruby -e 'puts "a = b \\\n if c"' | bundle exec rubocop --stdin test.rb --only Style/RedundantLineContinuation
Inspecting 1 file
C
Offenses:
test.rb:1:7: C: [Correctable] Style/RedundantLineContinuation: Redundant line continuation.
a = b \ ...
^
$ ruby -e 'puts "a = b if c \\\n || d"' | bundle exec rubocop --stdin test.rb --only Style/RedundantLineContinuation
Inspecting 1 file
C
Offenses:
test.rb:1:12: C: [Correctable] Style/RedundantLineContinuation: Redundant line continuation.
a = b if c \ ...
^
…nuation`
Fixesrubocop#12797.
This PR fixes false positives for `Style/RedundantLineContinuation`
when using line continuations with `&&` or `||` operator in assignment.
Fixes#12797.
This PR fixes false positives for `Style/RedundantLineContinuation`
when using line continuations with `&&` or `||` operator in assignment.
I found more edge case for this lint.
Expected behavior
No offence.
Actual behavior
Note that 1st, 2nd one maybe duplicate of #12793
Steps to reproduce the problem
see Actual behavior
RuboCop version
The text was updated successfully, but these errors were encountered: