class RuboCop::Cop::Layout::ExtraSpacing

def check_other(t1, t2, ast)

def check_other(t1, t2, ast)
  extra_space_range(t1, t2) do |range|
    # Unary + doesn't appear as a token and needs special handling.
    next if ignored_range?(ast, range.begin_pos)
    next if unary_plus_non_offense?(range)
    add_offense(range, range, MSG_UNNECESSARY)
  end
end