class RuboCop::Cop::Layout::SpaceAroundOperators

def check_operator(operator, right_operand)

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