Method: RuboCop::Cop::Offense#correctable?
- Defined in:
- lib/rubocop/cop/offense.rb
permalink #correctable? ⇒ Boolean (readonly)
Returns whether this offense can be automatically corrected via autocorrect. This includes todo comments, for example when requested with ‘–disable-uncorrectable`.
101 102 103 |
# File 'lib/rubocop/cop/offense.rb', line 101 def correctable? @status != :unsupported end |