vendor/ruby/2.3.0/gems/rubocop-0.25.0/lib/rubocop/cop/team.rb
# Does a slower but safer auto-correction run by correcting for just one
# cop. The re-running of auto-corrections will make sure that the full
# set of auto-corrections is tried again after this method has finished.
Does a slower but safer auto-correction run by correcting for just one
cop. The re-running of auto-corrections will make sure that the full
set of auto-corrections is tried again after this method has finished.
Does a slower but safer auto - correction run by correcting for just one cop . The re - running of auto - corrections will make sure that the full set of auto - corrections is tried again after this method has finished .
def autocorrect_one_cop(buffer, cops)
        cop_with_corrections = cops.find { |cop| cop.corrections.any? }
        corrector = Corrector.new(buffer, cop_with_corrections.corrections)
        corrector.rewrite
      end
def autocorrect_one_cop ( buffer , cops ) cop_with_corrections = cops . find { | cop | cop . corrections . any? } corrector = Corrector . new ( buffer , cop_with_corrections . corrections ) corrector . rewrite end
Does a slower but safer auto-correction run by correcting for just one
cop.
Does a slower but safer auto - correction run by correcting for just one cop .
buffer
cops