123456789_123456789_123456789_123456789_123456789_

Module: RuboCop::Cop::OnNormalIfUnless

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: lib/rubocop/cop/mixin/on_normal_if_unless.rb

Overview

Common functionality for cops checking if and unless expressions.

Instance Method Summary

Instance Method Details

#on_if(node)

[ GitHub ]

  
# File 'lib/rubocop/cop/mixin/on_normal_if_unless.rb', line 7

def on_if(node)
  return if node.modifier_form? || node.ternary?

  on_normal_if_unless(node)
end