class RuboCop::Cop::Style::MultilineOperationIndentation
def offending_range(node, lhs, rhs, given_style)
def offending_range(node, lhs, rhs, given_style) return false unless begins_its_line?(rhs) return false if lhs.loc.line == rhs.line # Needed for unary op. return false if not_for_this_cop?(node) correct_column = if should_align?(node, given_style) lhs.loc.column else indentation(lhs) + correct_indentation(node) end @column_delta = correct_column - rhs.column rhs if @column_delta != 0 end