在 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