1

在 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
4

1 回答 1

3

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

在我们的情况下,升级服务器是不可能的。

于 2017-11-16T13:54:05.553 回答