Exception: RuboCop::Runner::InfiniteCorrectionLoop

Inherits:
Exception
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(path, offenses) ⇒ InfiniteCorrectionLoop

Returns a new instance of InfiniteCorrectionLoop.



12
13
14
15
# File 'lib/rubocop/runner.rb', line 12

def initialize(path, offenses)
  super "Infinite loop detected in #{path}."
  @offenses = offenses
end

Instance Attribute Details

#offensesObject (readonly)

Returns the value of attribute offenses.



10
11
12
# File 'lib/rubocop/runner.rb', line 10

def offenses
  @offenses
end