eclipse - 在 Eclipse 中使用 SonarQube

标签 eclipse sonarqube

我刚刚在 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/

相关文章:

java - 在 Sonar 中,如何防止检查某些包中的某些规则?

azure - 使用内置系统变量创建 Powershell 环境变量

java - 寻找一种方法来防止在项目中使用 java.sql.Statement

Java:(错误?)SonarQube 6.7.1 LTS 中的 S2637 为阳性

java - Eclipse 中未创建 EJB 2.0 stub

java - 如何在Eclipse中立即切换到新的java项目

java - Eclipse 中以及运行 mvn clean install 时出现 Maven 错误

eclipse - 如何诊断 eclipse 崩溃?

android - android应用程序中的按钮导致空指针错误

java - Sonar 管 5.3 : IllegalArgumentException: There's no changeset on line 1352