Open akimd opened 3 weeks ago
This is a false positive, not a false negative.
Of course, sorry.
Another example of false positive. I don't know if it's the same bug.
# frozen_string_literal: true
def fun
foo
.bar(12) \
|| baz
end
$ bundle exec rubocop contline.rb
Inspecting 1 file
C
Offenses:
contline.rb:5:14: C: [Correctable] Style/RedundantLineContinuation: Redundant line continuation.
.bar(12) \ ...
^
1 file inspected, 1 offense detected, 1 offense autocorrectable
$ bundle exec rubocop -V
1.66.1 (using Parser 3.3.5.0, rubocop-ast 1.32.3, running on ruby 3.3.4) [arm64-darwin23]
- rubocop-performance 1.21.1
Hi,
In the following example the backslash is absolutely needed, yet the cop wants to get rid of it.
Cheers!
Expected behavior
No complaint.
Actual behavior
Complaint.
RuboCop version