Skip to content

Commit f098edc

Browse files
authored
CHANGE @W-17042378@ Fix for HTML report (#128)
1 parent fb07020 commit f098edc

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

package-lock.json

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/code-analyzer-core/output-templates/html-template-0.0.1.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@
234234
return `<li>
235235
${this.isMainLocation(violation, location) ? "<strong>Main</strong> " : ""}
236236
<span class="file">${location.file} (${position})</span>
237-
<span class="comment">${location.comment}</span>
237+
${location.comment ? `<span class="comment">${location.comment}</span>` : ""}
238238
</li>`;
239239
})
240240
.join("")}</ul>`;

packages/code-analyzer-core/test/test-data/expectedOutputFiles/multipleViolations.goldfile.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@
234234
return `<li>
235235
${this.isMainLocation(violation, location) ? "<strong>Main</strong> " : ""}
236236
<span class="file">${location.file} (${position})</span>
237-
<span class="comment">${location.comment}</span>
237+
${location.comment ? `<span class="comment">${location.comment}</span>` : ""}
238238
</li>`;
239239
})
240240
.join("")}</ul>`;

packages/code-analyzer-core/test/test-data/expectedOutputFiles/unexpectedEngineErrorViolation.goldfile.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@
234234
return `<li>
235235
${this.isMainLocation(violation, location) ? "<strong>Main</strong> " : ""}
236236
<span class="file">${location.file} (${position})</span>
237-
<span class="comment">${location.comment}</span>
237+
${location.comment ? `<span class="comment">${location.comment}</span>` : ""}
238238
</li>`;
239239
})
240240
.join("")}</ul>`;

packages/code-analyzer-core/test/test-data/expectedOutputFiles/zeroViolations.goldfile.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@
234234
return `<li>
235235
${this.isMainLocation(violation, location) ? "<strong>Main</strong> " : ""}
236236
<span class="file">${location.file} (${position})</span>
237-
<span class="comment">${location.comment}</span>
237+
${location.comment ? `<span class="comment">${location.comment}</span>` : ""}
238238
</li>`;
239239
})
240240
.join("")}</ul>`;

0 commit comments

Comments
 (0)