Search in sources :

Example 1 with AnalysisEngine

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;
}
Also used : PluginInstancesRepository(org.sonarsource.sonarlint.core.plugin.commons.PluginInstancesRepository) AnalysisEngine(org.sonarsource.sonarlint.core.analysis.AnalysisEngine) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

BeforeEach (org.junit.jupiter.api.BeforeEach)1 AnalysisEngine (org.sonarsource.sonarlint.core.analysis.AnalysisEngine)1 PluginInstancesRepository (org.sonarsource.sonarlint.core.plugin.commons.PluginInstancesRepository)1