Search in sources :

Example 1 with LoadedAnalyzer

use of org.sonarsource.sonarlint.core.client.api.connected.LoadedAnalyzer in project sonarlint-core by SonarSource.

the class ConnectedModeRequirementsTest method checkMinimalPluginVersionDuringGlobalUpdate.

@Test
public void checkMinimalPluginVersionDuringGlobalUpdate() throws IOException {
    UpdateResult update = engine.update(config(), null);
    assertThat(update.status().getLastUpdateDate()).isNotNull();
    assertThat(engine.getLoadedAnalyzers().stream().map(LoadedAnalyzer::key)).doesNotContain("javascript");
}
Also used : LoadedAnalyzer(org.sonarsource.sonarlint.core.client.api.connected.LoadedAnalyzer) UpdateResult(org.sonarsource.sonarlint.core.client.api.connected.UpdateResult) Test(org.junit.Test)

Example 2 with LoadedAnalyzer

use of org.sonarsource.sonarlint.core.client.api.connected.LoadedAnalyzer in project sonarlint-intellij by SonarSource.

the class SonarLintProjectAnalyzersPanel method reload.

public void reload() {
    ProjectBindingManager bindingManager = SonarLintUtils.get(project, ProjectBindingManager.class);
    try {
        Collection<LoadedAnalyzer> loadedAnalyzers = bindingManager.getFacade().getLoadedAnalyzers();
        tableModel.set(loadedAnalyzers);
    } catch (Exception e) {
        LOGGER.error(e);
        tableModel.set(Collections.emptyList());
    }
}
Also used : LoadedAnalyzer(org.sonarsource.sonarlint.core.client.api.connected.LoadedAnalyzer) ProjectBindingManager(org.sonarlint.intellij.core.ProjectBindingManager)

Aggregations

LoadedAnalyzer (org.sonarsource.sonarlint.core.client.api.connected.LoadedAnalyzer)2 Test (org.junit.Test)1 ProjectBindingManager (org.sonarlint.intellij.core.ProjectBindingManager)1 UpdateResult (org.sonarsource.sonarlint.core.client.api.connected.UpdateResult)1