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);
});
}
Aggregations