use of com.synopsys.integration.detect.workflow.report.CodeLocationReporter in project synopsys-detect by blackducksoftware.
the class DiagnosticReportHandler method completedCodeLocations.
public void completedCodeLocations(Map<DetectCodeLocation, String> codeLocationNameMap) {
if (detectorToolResult == null || !detectorToolResult.getRootDetectorEvaluationTree().isPresent()) {
return;
}
try {
ReportWriter clWriter = getReportWriter(ReportTypes.CODE_LOCATIONS);
ReportWriter dcWriter = getReportWriter(ReportTypes.DEPENDENCY_COUNTS);
CodeLocationReporter clReporter = new CodeLocationReporter();
clReporter.writeCodeLocationReport(clWriter, dcWriter, detectorToolResult.getRootDetectorEvaluationTree().get(), detectorToolResult.getCodeLocationMap(), codeLocationNameMap);
} catch (Exception e) {
logger.error("Failed to write code location report.", e);
}
}
Aggregations