Method: RuboCop::Cop::Offense#disabled?
- Defined in:
- lib/rubocop/cop/offense.rb
permalink #disabled? ⇒ Boolean (readonly)
Returns whether this offense was locally disabled with a disable or todo where it occurred.
133 134 135 |
# File 'lib/rubocop/cop/offense.rb', line 133 def disabled? @status == :disabled || @status == :todo end |