Browse Source

SONAR-11125 Add IT

tags/7.5
Duarte Meneses 5 years ago
parent
commit
697d49b004

+ 1
- 1
sonar-scanner-engine/src/main/java/org/sonar/scanner/report/ChangedLinesPublisher.java View File

@@ -85,7 +85,7 @@ public class ChangedLinesPublisher implements ReportPublisherStep {
Set<Integer> changedLines = pathSetMap.get(e.getKey());
// if the file got no information returned by the SCM, we write nothing in the report and
// the compute engine will use SCM dates to estimate which lines are new
if (changedLines != null) {
if (changedLines != null && !changedLines.isEmpty()) {
count++;
writeChangedLines(writer, e.getValue().batchId(), changedLines);
}

Loading…
Cancel
Save