@Test public void test_createSonarLint_with_default_global_config() { StandaloneSonarLint sonarLint = sonarLintFactory.createSonarLint(); assertThat(sonarLint).isNotNull(); assertThat(sonarLint).isInstanceOf(StandaloneSonarLint.class); }
public StandaloneSonarLint createSonarLint() { URL[] plugins; try { plugins = loadPlugins(); } catch (Exception e) { throw new IllegalStateException("Error loading plugins", e); } StandaloneGlobalConfiguration config = StandaloneGlobalConfiguration.builder() .addPlugins(plugins) .setLogOutput(new DefaultLogOutput(LOGGER)) .build(); StandaloneSonarLintEngine engine = new StandaloneSonarLintEngineImpl(config); return new StandaloneSonarLint(engine); }
SonarLintFactory { public StandaloneSonarLint createSonarLint() { URL[] plugins; try { plugins = loadPlugins(); } catch (Exception e) { throw new IllegalStateException("Error loading plugins", e); } StandaloneGlobalConfiguration config = StandaloneGlobalConfiguration.builder() .addPlugins(plugins) .setLogOutput(new DefaultLogOutput(LOGGER)) .build(); StandaloneSonarLintEngine engine = new StandaloneSonarLintEngineImpl(config); return new StandaloneSonarLint(engine); } }
SonarLintFactory { public StandaloneSonarLint createSonarLint() { URL[] plugins; try { plugins = loadPlugins(); } catch (Exception e) { throw new IllegalStateException("Error loading plugins", e); } StandaloneGlobalConfiguration config = StandaloneGlobalConfiguration.builder() .addPlugins(plugins) .setLogOutput(new DefaultLogOutput(LOGGER)) .build(); StandaloneSonarLintEngine engine = new StandaloneSonarLintEngineImpl(config); return new StandaloneSonarLint(engine); }  }
SonarLintFactory { public StandaloneSonarLint createSonarLint() { URL[] plugins; try { plugins = loadPlugins(); } catch (Exception e) { throw new IllegalStateException("Error loading plugins", e); } StandaloneGlobalConfiguration config = StandaloneGlobalConfiguration.builder() .addPlugins(plugins) .setLogOutput(new DefaultLogOutput(LOGGER)) .build(); StandaloneSonarLintEngine engine = new StandaloneSonarLintEngineImpl(config); return new StandaloneSonarLint(engine); }  StandaloneSonarLint createSonarLint(); }
SonarLintFactory { public StandaloneSonarLint createSonarLint() { URL[] plugins; try { plugins = loadPlugins(); } catch (Exception e) { throw new IllegalStateException("Error loading plugins", e); } StandaloneGlobalConfiguration config = StandaloneGlobalConfiguration.builder() .addPlugins(plugins) .setLogOutput(new DefaultLogOutput(LOGGER)) .build(); StandaloneSonarLintEngine engine = new StandaloneSonarLintEngineImpl(config); return new StandaloneSonarLint(engine); }  StandaloneSonarLint createSonarLint();  }