lib/codacy/parser.rb in codacy-coverage-1.1.7 vs lib/codacy/parser.rb in codacy-coverage-1.1.8

- old
+ new

@@ -14,10 +14,10 @@ [(lineNr + 1).to_s, covered] else nil end end.compact - lines_covered = v.compact.length == 0 ? 0 : ((coverage_lines.length.to_f / v.compact.length) * 100).round + lines_covered = v.compact.length == 0 ? 0 : ((coverage_lines.count { |x| x[1] > 0 }.to_f / v.compact.length) * 100).round Hash[ [['filename', file_dir], ['total', lines_covered], ['coverage', Hash[coverage_lines]]] ]