use of com.synopsys.integration.detect.tool.detector.factory.DetectDetectableFactory in project synopsys-detect by blackducksoftware.
the class HelpJsonManager method createHelpJsonDetectorList.
private List<HelpJsonDetector> createHelpJsonDetectorList(boolean buildless) {
DetectorRuleFactory ruleFactory = new DetectorRuleFactory();
// TODO: Is there a better way to build a fake set of rules?
DetectDetectableFactory mockFactory = new DetectDetectableFactory(null, null, null, null, null, null, null, null);
DetectorRuleSet ruleSet = ruleFactory.createRules(mockFactory, buildless);
return ruleSet.getOrderedDetectorRules().stream().map(detectorRule -> convertDetectorRule(detectorRule, ruleSet)).collect(Collectors.toList());
}
Aggregations