class RuboCop::Cop::Layout::SpaceAroundOperators

def check_operator(type, operator, right_operand)

def check_operator(type, operator, right_operand)
  with_space = range_with_surrounding_space(range: operator)
  return if with_space.source.start_with?("\n")
  offense(type, operator, with_space, right_operand) do |msg|
    add_offense(operator, message: msg) do |corrector|
      autocorrect(corrector, with_space)
    end
  end
end