Method: RuboCop::Cop::Offense#disabled?

Defined in:
lib/rubocop/cop/offense.rb

#disabled?Boolean (readonly)

Returns whether this offense was locally disabled with a disable or todo where it occurred.

Returns:

  • (Boolean)

    whether this offense was locally disabled with a disable or todo where it occurred.

[View source]

133
134
135
# File 'lib/rubocop/cop/offense.rb', line 133

def disabled?
  @status == :disabled || @status == :todo
end