class Rubocop::Cop::Style::FavorUntilOverNegatedWhile
Checks for uses of while with a negated condition.
Public Instance Methods
error_message()
click to toggle source
# File lib/rubocop/cop/style/favor_unless_over_negated_if.rb, line 48 def error_message 'Favor until over while for negative conditions.' end
on_while(node)
click to toggle source
Calls superclass method
# File lib/rubocop/cop/style/favor_unless_over_negated_if.rb, line 43 def on_while(node) check(node) super end