【发布时间】: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