Method: Quality::Runner#run_ratchet_on_file

Defined in:
lib/quality/runner.rb

#run_ratchet_on_file(filename) ⇒ Object



59
60
61
62
63
64
# File 'lib/quality/runner.rb', line 59

def run_ratchet_on_file(filename)
  puts "Processing #{filename}"
  existing_violations = count_existing_violations(filename)
  new_violations = [0, existing_violations - 1].max
  write_violations(filename, new_violations)
end