use of org.sonarsource.sonarlint.core.analysis.AnalysisEngine in project sonarlint-core by SonarSource.
the class AnalysisEngineMediumTests method prepare.
@BeforeEach
void prepare(@TempDir Path workDir) throws IOException {
var enabledLanguages = Set.of(Language.PYTHON);
var analysisGlobalConfig = AnalysisEngineConfiguration.builder().addEnabledLanguages(enabledLanguages).setClientPid(1234L).setWorkDir(workDir).build();
var pluginInstancesRepository = new PluginInstancesRepository(new PluginInstancesRepository.Configuration(Set.of(findPythonJarPath()), enabledLanguages, Optional.empty()));
this.analysisEngine = new AnalysisEngine(analysisGlobalConfig, pluginInstancesRepository, logTester.getLogOutput());
engineStopped = false;
}
Aggregations