Search in sources :

Example 1 with DetectorTool

use of com.synopsys.integration.detect.tool.detector.DetectorTool in project synopsys-detect by blackducksoftware.

the class OperationFactory method executeDetectors.

public final DetectorToolResult executeDetectors() throws OperationException {
    return auditLog.namedPublic("Execute Detectors", "Detectors", () -> {
        DetectorToolOptions detectorToolOptions = detectConfigurationFactory.createDetectorToolOptions();
        DetectorRuleFactory detectorRuleFactory = new DetectorRuleFactory();
        DetectorRuleSet detectRuleSet = detectorRuleFactory.createRules(detectDetectableFactory, detectorToolOptions.isBuildless());
        DetectorTool detectorTool = new DetectorTool(new DetectorFinder(), extractionEnvironmentProvider, eventSystem, codeLocationConverter, new DetectorIssuePublisher(), statusEventPublisher, exitCodePublisher, detectorEventPublisher);
        return detectorTool.performDetectors(directoryManager.getSourceDirectory(), detectRuleSet, detectConfigurationFactory.createDetectorFinderOptions(), detectConfigurationFactory.createDetectorEvaluationOptions(), detectorToolOptions.getProjectBomTool(), detectorToolOptions.getRequiredDetectors(), fileFinder);
    });
}
Also used : DetectorToolOptions(com.synopsys.integration.detect.configuration.DetectorToolOptions) DetectorFinder(com.synopsys.integration.detector.finder.DetectorFinder) DetectorIssuePublisher(com.synopsys.integration.detect.tool.detector.DetectorIssuePublisher) DetectorRuleFactory(com.synopsys.integration.detect.tool.detector.DetectorRuleFactory) DetectorTool(com.synopsys.integration.detect.tool.detector.DetectorTool) DetectorRuleSet(com.synopsys.integration.detector.rule.DetectorRuleSet)

Aggregations

DetectorToolOptions (com.synopsys.integration.detect.configuration.DetectorToolOptions)1 DetectorIssuePublisher (com.synopsys.integration.detect.tool.detector.DetectorIssuePublisher)1 DetectorRuleFactory (com.synopsys.integration.detect.tool.detector.DetectorRuleFactory)1 DetectorTool (com.synopsys.integration.detect.tool.detector.DetectorTool)1 DetectorFinder (com.synopsys.integration.detector.finder.DetectorFinder)1 DetectorRuleSet (com.synopsys.integration.detector.rule.DetectorRuleSet)1