Search in sources :

Example 1 with CodeLocationReporter

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);
    }
}
Also used : ReportWriter(com.synopsys.integration.detect.workflow.report.writer.ReportWriter) FileReportWriter(com.synopsys.integration.detect.workflow.report.writer.FileReportWriter) InfoLogReportWriter(com.synopsys.integration.detect.workflow.report.writer.InfoLogReportWriter) CodeLocationReporter(com.synopsys.integration.detect.workflow.report.CodeLocationReporter)

Aggregations

CodeLocationReporter (com.synopsys.integration.detect.workflow.report.CodeLocationReporter)1 FileReportWriter (com.synopsys.integration.detect.workflow.report.writer.FileReportWriter)1 InfoLogReportWriter (com.synopsys.integration.detect.workflow.report.writer.InfoLogReportWriter)1 ReportWriter (com.synopsys.integration.detect.workflow.report.writer.ReportWriter)1