mirror of
https://github.com/securego/gosec.git
synced 2024-12-25 12:05:52 +00:00
show nosec in html report summary (#621)
This commit is contained in:
parent
d040f0725f
commit
433a67483a
1 changed files with 5 additions and 0 deletions
|
@ -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>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue