class RuboCop::Cop::Style::NegatedWhile

Checks for uses of while with a negated condition.

@example

# bad
while !foo
  bar
end

# good
until foo
  bar
end

# bad
bar until !foo

# good
bar while foo
bar while !foo && baz