Module: RuboCop::Cop::NegativeConditional
- Extended by:
- NodePattern::Macros
- Included in:
- Rails::SaveBang, Style::NegatedIf, 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.'.freeze
Method Summary
Methods included from NodePattern::Macros
def_node_matcher, def_node_search, node_search, node_search_all, node_search_body, node_search_first