lib/quality/tools/rubocop.rb in quality-19.2.0 vs lib/quality/tools/rubocop.rb in quality-19.2.1
- old
+ new
@@ -23,9 +23,12 @@
# See Rubocop.included
module ClassMethods
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
end