Skip to content

Commit

Permalink
use checker.LogFindings()
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamKorcz committed Oct 25, 2023
1 parent eeced8d commit 67d44ff
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions checks/evaluation/vulnerabilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,8 @@ func Vulnerabilities(name string,
}

vulnsFound := negativeFindings(findings)
numVulnsFound := len(negativeFindings(findings))
for _, vuln := range vulnsFound {
dl.Warn(&checker.LogMessage{
Text: vuln.Message,
})
}
numVulnsFound := len(vulnsFound)
checker.LogFindings(vulnsFound, dl)

score := checker.MaxResultScore - numVulnsFound

Expand Down

0 comments on commit 67d44ff

Please sign in to comment.