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:
Juan Antonio Osorio Robles 2019-07-03 14:51:43 +03:00 committed by Grant Murphy
parent e28a56a8ad
commit 39f7e7b9e0

View file

@ -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 {