Sha256: 6c6c31efdc1a90d08db0caab0440ada8fdc04a7b17f847d1cebaed4262d21cc8

Contents?: true

Size: 393 Bytes

Versions: 5

Compression:

Stored size: 393 Bytes

Contents

# encoding: utf-8

module Rubocop
  module Cop
    module Style
      # Checks for uses of while with a negated condition.
      class FavorUntilOverNegatedWhile < Cop
        include NegativeConditional

        def on_while(node)
          check(node)
        end

        def error_message
          'Favor until over while for negative conditions.'
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rubocop-0.19.1 lib/rubocop/cop/style/favor_until_over_negated_while.rb
rubocop-0.19.0 lib/rubocop/cop/style/favor_until_over_negated_while.rb
rubocop-0.18.1 lib/rubocop/cop/style/favor_until_over_negated_while.rb
rubocop-0.18.0 lib/rubocop/cop/style/favor_until_over_negated_while.rb
rubocop-0.17.0 lib/rubocop/cop/style/favor_until_over_negated_while.rb