Method: Quality::Runner#count_existing_violations
- Defined in:
- lib/quality/runner.rb
#count_existing_violations(filename) ⇒ Object
69 70 71 72 73 |
# File 'lib/quality/runner.rb', line 69 def count_existing_violations(filename) existing_violations = @count_io.read(filename).to_i raise("Problem with file #{filename}") if existing_violations < 0 existing_violations end |