@@ -131,26 +131,6 @@ func (a *JasScanner) Run(scannerCmd ScannerCmd, module jfrogappsconfig.Module) (
131131 return
132132}
133133
134- func LogJasScanFindings (scanType jasutils.JasScanType , vulnerabilitiesCount , violationsCount , threadId int ) {
135- if vulnerabilitiesCount == 0 && violationsCount == 0 {
136- log .Info (fmt .Sprintf ("%sNo %s findings" , clientutils .GetLogMsgPrefix (threadId , false ), scanType .String ()))
137- return
138- }
139- msg := fmt .Sprintf ("%sFound" , clientutils .GetLogMsgPrefix (threadId , false ))
140- hasVulnerabilities := vulnerabilitiesCount > 0
141- if hasVulnerabilities {
142- msg += fmt .Sprintf (" %d %s vulnerabilities" , vulnerabilitiesCount , scanType .String ())
143- }
144- if violationsCount > 0 {
145- if hasVulnerabilities {
146- msg = fmt .Sprintf ("%s (%d violations)" , msg , violationsCount )
147- } else {
148- msg += fmt .Sprintf (" %d %s violations" , violationsCount , scanType .String ())
149- }
150- }
151- log .Info (msg )
152- }
153-
154134func ReadJasScanRunsFromFile (fileName , wd , informationUrlSuffix string , minSeverity severityutils.Severity ) (vulnerabilitiesSarifRuns []* sarif.Run , violationsSarifRuns []* sarif.Run , err error ) {
155135 violationFileName := fmt .Sprintf ("%s_violations.sarif" , strings .TrimSuffix (fileName , ".sarif" ))
156136 vulnFileExist , violationsFileExist , err := checkJasResultsFilesExist (fileName , violationFileName )
0 commit comments