我刚刚在 Eclipse 中安装了 SonarQube,但我不知道如何使用它:
Here它说:
将项目链接到 Sonar 服务器
服务器是什么?我们应该在其他地方创建另一个与 Eclipse 中的项目同名的项目吗?
这真的很令人困惑,如果有人可以通过一个小例子提供帮助,我将不胜感激。
最佳答案
为了能够使用 Sonar Eclipse,您首先需要安装 Sonar 服务器 5.1 或更早版本,如下所述:http://docs.sonarqube.org/display/SONAR/SonarQube+in+Eclipse
然后,您必须对您的项目运行第一次分析(在 Eclipse 之外),以便在 Sonar 服务器中引用它。见 http://docs.sonarqube.org/display/SONAR/Analyzing+Source+Code
在这两个步骤之后,一旦您将本地项目与 Sonar 服务器相关联,您就可以直接在 Eclipse 中运行分析。
更新:
Sonar 5.2+ 不再支持 sonar eclipse 插件,而支持 sonarlint。不幸的是 sonarlint 有 no customization options .
We will make this feature available in upcoming versions, probably by requiring to "connect" SonarLint with an existing SonarQube server instance.
关于eclipse - 在 Eclipse 中使用 SonarQube,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7975429/