class RuboCop::Cop::Style::NegatedWhile

def message(node)

def message(node)
  if node.while_type?
    format(MSG, 'until', 'while')
  else
    format(MSG, 'while', 'until')
  end
end