Skip to content
This repository was archived by the owner on Feb 19, 2020. It is now read-only.

Commit 45bf980

Browse files
committed
Add not covered lines to report
1 parent 6779008 commit 45bf980

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/codacy/parser.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def self.parse_file(simplecov_result)
1010
file_reports = simplecov_result.original_result.map do |k, v|
1111
file_dir = k.sub(project_dir, "").sub("/", "")
1212
coverage_lines = v.each_with_index.map do |covered, lineNr|
13-
if !covered.nil? && covered > 0
13+
if !covered.nil?
1414
[(lineNr + 1).to_s, covered]
1515
else
1616
nil

0 commit comments

Comments
 (0)