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 { .break-word {
word-wrap: break-word; word-wrap: break-word;
} }
.help {
white-space: pre-wrap;
}
</style> </style>
</head> </head>
<body> <body>
@ -102,6 +106,7 @@ const templateContent = `
<p className="help"> <p className="help">
Scanned { this.props.data.Stats.files.toLocaleString() } files Scanned { this.props.data.Stats.files.toLocaleString() } files
with { this.props.data.Stats.lines.toLocaleString() } lines of code. 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> </p>
); );
} }