use of org.sonarsource.sonarlint.core.analysis.container.analysis.IssueListenerHolder in project sonarlint-core by SonarSource.
the class ModuleContainer method analyze.
public AnalysisResults analyze(AnalysisConfiguration configuration, Consumer<Issue> issueListener, ProgressMonitor progress) {
var analysisContainer = new AnalysisContainer(this, progress);
analysisContainer.add(configuration);
analysisContainer.add(new IssueListenerHolder(issueListener));
analysisContainer.add(new ActiveRulesAdapter(configuration.activeRules().stream().map(ActiveRuleAdapter::new).collect(Collectors.toList())));
var defaultAnalysisResult = new AnalysisResults();
analysisContainer.add(defaultAnalysisResult);
analysisContainer.execute();
return defaultAnalysisResult;
}
Aggregations