Method: RuboCop::Cop::Offense#correctable?

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

#correctable?Boolean (readonly)

Returns whether this offense can be automatically corrected via autocorrect. This includes todo comments, for example when requested with ‘–disable-uncorrectable`.

Returns:

  • (Boolean)

    whether this offense can be automatically corrected via autocorrect. This includes todo comments, for example when requested with ‘–disable-uncorrectable`.

[View source]

101
102
103
# File 'lib/rubocop/cop/offense.rb', line 101

def correctable?
  @status != :unsupported
end