show nosec in html report summary (#621)

This commit is contained in:
Marc Brugger 2021-05-20 11:34:52 +02:00 committed by GitHub
parent d040f0725f
commit 433a67483a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,6 +40,10 @@ const templateContent = `
.break-word {
word-wrap: break-word;
}
.help {
white-space: pre-wrap;
}
</style>
</head>
<body>
@ -102,6 +106,7 @@ const templateContent = `
<p className="help">
Scanned { this.props.data.Stats.files.toLocaleString() } files
with { this.props.data.Stats.lines.toLocaleString() } lines of code.
{ this.props.data.Stats.nosec ? '\n' + this.props.data.Stats.nosec.toLocaleString() + ' false positives (nosec) have been waived.' : ''}
</p>
);
}