Module: RuboCop::Cop::NegativeConditional

Extended by:
Macros
Included in:
Style::NegatedIf, Style::NegatedUnless, Style::NegatedWhile
Defined in:
lib/rubocop/cop/mixin/negative_conditional.rb

Overview

Some common code shared between ‘NegatedIf` and `NegatedWhile` cops.

Constant Summary collapse

MSG =
'Favor `%<inverse>s` over `%<current>s` for negative conditions.'