Skip to content

Commit

Permalink
Display filtered number of issues instead of total in stats
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
JAORMX authored and gcmurphy committed Jul 4, 2019
1 parent e28a56a commit 39f7e7b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/gosec/main.go
Expand Up @@ -320,6 +320,9 @@ func main() {

// Filter the issues by severity and confidence
issues = filterIssues(issues, failSeverity, failConfidence)
if metrics.NumFound != len(issues) {
metrics.NumFound = len(issues)
}

// Exit quietly if nothing was found
if len(issues) == 0 && *flagQuiet {
Expand Down

0 comments on commit 39f7e7b

Please sign in to comment.