class RuboCop::Cop::Style::RedundantLineContinuation
def on_new_investigation
def on_new_investigation return unless processed_source.ast each_match_range(processed_source.ast.source_range, /(\\\n)/) do |range| next if require_line_continuation?(range) next unless redundant_line_continuation?(range) add_offense(range) do |corrector| corrector.remove_leading(range, 1) end end end