mirror of
https://github.com/securego/gosec.git
synced 2024-12-26 04:25:52 +00:00
Display filtered number of issues instead of total in stats
This takes into account the filtered number of issues instead of the total number. This number is more relevant to developers, as the intention was to not take certain issues into account anyway.
This commit is contained in:
parent
e28a56a8ad
commit
39f7e7b9e0
1 changed files with 3 additions and 0 deletions
|
@ -320,6 +320,9 @@ func main() {
|
||||||
|
|
||||||
// Filter the issues by severity and confidence
|
// Filter the issues by severity and confidence
|
||||||
issues = filterIssues(issues, failSeverity, failConfidence)
|
issues = filterIssues(issues, failSeverity, failConfidence)
|
||||||
|
if metrics.NumFound != len(issues) {
|
||||||
|
metrics.NumFound = len(issues)
|
||||||
|
}
|
||||||
|
|
||||||
// Exit quietly if nothing was found
|
// Exit quietly if nothing was found
|
||||||
if len(issues) == 0 && *flagQuiet {
|
if len(issues) == 0 && *flagQuiet {
|
||||||
|
|
Loading…
Reference in a new issue