Module: Quality::Tools::Rubocop::ClassMethods
- Defined in:
- lib/quality/tools/rubocop.rb
Overview
See Rubocop.included
Instance Method Summary collapse
Instance Method Details
#count_rubocop_violations(line) ⇒ Object
27 28 29 30 31 32 33 34 35 36 |
# File 'lib/quality/tools/rubocop.rb', line 27 def count_rubocop_violations(line) if line =~ /^.* file[s|] inspected, (.*) offence[s|] detected$/ 0 elsif line =~ /^warning: .*/ # don't count internal rubocop errors/warnings 0 else 1 end end |