本文整理匯總了Java中org.sonarsource.sonarlint.core.client.api.standalone.StandaloneSonarLintEngine類的典型用法代碼示例。如果您正苦於以下問題:Java StandaloneSonarLintEngine類的具體用法?Java StandaloneSonarLintEngine怎麽用?Java StandaloneSonarLintEngine使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
StandaloneSonarLintEngine類屬於org.sonarsource.sonarlint.core.client.api.standalone包,在下文中一共展示了StandaloneSonarLintEngine類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: createStandalone
import org.sonarsource.sonarlint.core.client.api.standalone.StandaloneSonarLintEngine; //導入依賴的package包/類
private static SonarLint createStandalone(boolean verbose) {
LOGGER.info("Standalone mode");
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, verbose))
.build();
StandaloneSonarLintEngine engine = new StandaloneSonarLintEngineImpl(config);
return new StandaloneSonarLint(engine);
}
示例2: startStop
import org.sonarsource.sonarlint.core.client.api.standalone.StandaloneSonarLintEngine; //導入依賴的package包/類
@Test
public void startStop() {
engine = mock(StandaloneSonarLintEngine.class);
sonarLint = new StandaloneSonarLint(engine);
sonarLint.stop();
verify(engine).stop();
}
示例3: StandaloneSonarLint
import org.sonarsource.sonarlint.core.client.api.standalone.StandaloneSonarLintEngine; //導入依賴的package包/類
public StandaloneSonarLint(StandaloneSonarLintEngine engine) {
this.engine = engine;
}