class RuboCop::Cop::Layout::IndentationStyle
def on_new_investigation
def on_new_investigation str_ranges = nil processed_source.lines.each.with_index(1) do |line, lineno| next unless (range = find_offense(line, lineno)) # Perform costly calculation only when needed. str_ranges ||= string_literal_ranges(processed_source.ast) next if in_string_literal?(str_ranges, range) add_offense(range) { |corrector| autocorrect(corrector, range) } end end