【问题标题】:Sonarlint not syncing with SonarQubeSonarlint 不与 SonarQube 同步
【发布时间】:2018-03-29 04:57:42
【问题描述】:

在 Eclipse 中使用 Sonarlint 3.2 和 SonarQube 5.6.6。

我已成功将 Eclipse 中的项目绑定到 SonarQube。但是,Sonarlint 没有报告任何问题,而 SonarQube 中报告了问题。我未能成功解决错误。

以下是 Sonarlint 控制台的日志文件(为了便于阅读,稍作编辑...)。令我惊讶的是“没有可用的语言”和“没有安装分析器”消息。

Sonarlint 独立提供预期结果。 SonarQube 的连接模式给出了 0 个问题。

Trigger: EDITOR_OPEN
SonarLint analysis of file xxx.java...
Connected mode (using configuration of 'xxx' in server 'xxx')
Starting analysis with configuration:
[
  moduleKey: xxx
  baseDir: xxx
  workDir: C:\Werkomgeving\.metadata\.plugins\org.eclipse.core.resources\.projects\LWBBusinessRules\org.sonarlint.eclipse.core
  extraProperties: {sonar.java.source=1.6, sonar.java.target=1.6, sonar.libraries=yyyyy, sonar.binaries=C:xxx, sonar.java.binaries=C:xxx, sonar.java.test.binaries=C:xxx}
  inputFiles: [
    xxx.java
  ]
]

No language available
No analyzers installed
Start analysis
Quality profiles:
Index files
Setting filesystem encoding: UTF-8
1 files indexed
Found 0 issue(s)
Done in 23 ms

【问题讨论】:

  • 它没有报告哪些问题?您是否使用自定义插件,例如 checkstyle 或 findbugs?这些问题不会显示,因为它们是自定义分析器,并且 sonarlint 仅支持“Sonar”-分析器(SonarJava、SonarJS、...)
  • 直接“开箱即用”。所以声纳方式配置文件和质量门。根本没有插件。
  • 未报告的问题是简单的问题,例如“重新排序修饰符以符合 java”或“删除未使用的导入”。这些问题在 SonarQube 服务器上,但 Sonarlint 没有显示它们。

标签: sonarqube sonarlint-eclipse


【解决方案1】:

SonarLint 3.2 与服务器 5.6.6 版本不兼容。我们不得不恢复到 SonarLint 的 2.5.1 版本。在我们这样做之后,我们会看到来自 SonarLint 本身和服务器的问题。

在我们的情况下无法升级服务器。

【讨论】:

    猜你喜欢
    • 2018-01-31
    • 2018-03-02
    • 2017-10-07
    • 1970-01-01
    • 2018-01-23
    • 2017-04-19
    • 2016-02-07
    • 2017-06-09
    • 2016-03-26
    相关资源
    最近更新 更多