當前位置: 首頁>>代碼示例>>Java>>正文


Java StandaloneSonarLintEngine類代碼示例

本文整理匯總了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);
}
 
開發者ID:SonarSource,項目名稱:sonarlint-cli,代碼行數:19,代碼來源:SonarLintFactory.java

示例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();
}
 
開發者ID:SonarSource,項目名稱:sonarlint-cli,代碼行數:8,代碼來源:StandaloneSonarLintTest.java

示例3: StandaloneSonarLint

import org.sonarsource.sonarlint.core.client.api.standalone.StandaloneSonarLintEngine; //導入依賴的package包/類
public StandaloneSonarLint(StandaloneSonarLintEngine engine) {
  this.engine = engine;
}
 
開發者ID:SonarSource,項目名稱:sonarlint-cli,代碼行數:4,代碼來源:StandaloneSonarLint.java


注:本文中的org.sonarsource.sonarlint.core.client.api.standalone.StandaloneSonarLintEngine類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。