lib/codacy/parser.rb in codacy-coverage-1.1.6 vs lib/codacy/parser.rb in codacy-coverage-1.1.7
- old
+ new
@@ -8,10 +8,10 @@
logger.debug(simplecov_result.original_result)
file_reports = simplecov_result.original_result.map do |k, v|
file_dir = k.sub(project_dir, "").sub("/", "")
coverage_lines = v.each_with_index.map do |covered, lineNr|
- if !covered.nil? && covered > 0
+ if !covered.nil?
[(lineNr + 1).to_s, covered]
else
nil
end
end.compact