Skip to content

Commit

Permalink
Fixed RuboCop Style/RedundantLineContinuation false positive
Browse files Browse the repository at this point in the history
Marked this as a follow up action because this is a known bug with link:rubocop/rubocop#12430.

Milestone: patch
  • Loading branch information
bkuhlmann committed Mar 2, 2024
1 parent 659c3b7 commit d747092
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/marameters/probe.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def name?(value) = parameters.any? { |_kind, name| name == value }

def names = parameters.map { |_kind, name| name }

# rubocop:todo Style/RedundantLineContinuation
def only_bare_splats?
parameters in [[:rest]] \
| [[:keyrest]] \
Expand All @@ -53,6 +54,7 @@ def only_bare_splats?
| [[:keyrest, :**]] \
| [[:rest, :*], [:keyrest, :**]]
end
# rubocop:enable Style/RedundantLineContinuation

def only_double_splats? = (parameters in [[:keyrest]] | [[:keyrest, *]])

Expand Down

0 comments on commit d747092

Please sign in to comment.