Exception: RuboCop::Runner::InfiniteCorrectionLoop
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- RuboCop::Runner::InfiniteCorrectionLoop
- Defined in:
- lib/rubocop/runner.rb
Overview
An exception indicating that the inspection loop got stuck correcting offenses back and forth.
Instance Attribute Summary collapse
-
#offenses ⇒ Object
readonly
Returns the value of attribute offenses.
Instance Method Summary collapse
-
#initialize(path, offenses) ⇒ InfiniteCorrectionLoop
constructor
A new instance of InfiniteCorrectionLoop.
Constructor Details
#initialize(path, offenses) ⇒ InfiniteCorrectionLoop
Returns a new instance of InfiniteCorrectionLoop.
13 14 15 16 |
# File 'lib/rubocop/runner.rb', line 13 def initialize(path, offenses) super "Infinite loop detected in #{path}." @offenses = offenses end |
Instance Attribute Details
#offenses ⇒ Object (readonly)
Returns the value of attribute offenses.
11 12 13 |
# File 'lib/rubocop/runner.rb', line 11 def offenses @offenses end |