Skip to content

Commit 433a674

Browse files
authored
show nosec in html report summary (#621)
1 parent d040f07 commit 433a674

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

report/html/template.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ const templateContent = `
4040
.break-word {
4141
word-wrap: break-word;
4242
}
43+
44+
.help {
45+
white-space: pre-wrap;
46+
}
4347
</style>
4448
</head>
4549
<body>
@@ -102,6 +106,7 @@ const templateContent = `
102106
<p className="help">
103107
Scanned { this.props.data.Stats.files.toLocaleString() } files
104108
with { this.props.data.Stats.lines.toLocaleString() } lines of code.
109+
{ this.props.data.Stats.nosec ? '\n' + this.props.data.Stats.nosec.toLocaleString() + ' false positives (nosec) have been waived.' : ''}
105110
</p>
106111
);
107112
}

0 commit comments

Comments
 (0)