简体   繁体   English

Sonarlint 和其他用于 Eclipse 模拟 sonarqube 的工具

[英]Sonarlint and other tools for eclipse to mimic sonarqube

On my local machine for my project trying to see the code quality related issues that sonarqube shows.在我的项目的本地机器上尝试查看 sonarqube 显示的代码质量相关问题。

Using eclipse IDE.使用 Eclipse IDE。 Installed sonarlint plugin and I am able to see most of the issues that I see in the sonarqube for my project.安装了 sonarlint 插件,我能够看到我在 sonarqube 中为我的项目看到的大多数问题。 But, don't see issues related to duplicate code etc但是,看不到与重复代码等相关的问题

From what I see on internet sonarqube uses other third party tools like PMD, checksyle, findbugs to show other issues apart from what sonarlint shows.从我在互联网上看到的情况来看,sonarqube 使用其他第三方工具,如 PMD、checksyle、findbugs 来显示除 sonarlint 显示的内容之外的其他问题。

Who usually provide the xml rulesets for PMD, Checkstyle etc in the company?公司中PMD、Checkstyle等的xml规则集通常由谁提供? Is it the sonar team or the architecture team?是声纳团队还是架构团队? or the project team leads create one and provide it to the team.或者项目团队负责人创建一个并将其提供给团队。

At the time of this writing, SonarLint runs analyses file by file, so it cannot display errors involving multiple files, such as:在撰写本文时,SonarLint 逐个文件地运行分析,因此它无法显示涉及多个文件的错误,例如:

  • Duplications重复
  • Test coverage测试覆盖率
  • Package-level issues ( package-info.java is missing, etc)包级问题(缺少package-info.java等)

Furthermore, it only shows issues from SonarSource analyzers, third party analyzers such as PMD and checkstyle are excluded.此外,它仅显示来自 SonarSource 分析器的问题,不包括 PMD 和 checkstyle 等第三方分析器。

Finally, it will show the same issues as you see in SonarQube in connected mode.最后,它将显示与您在连接模式下在 SonarQube 中看到的相同的问题。 Otherwise, in standalone mode, it uses the default quality profile (= set of rules), as defined by its embedded analyzers, which may slightly vary depending on their version.否则,在独立模式下,它使用由其嵌入式分析器定义的默认质量配置文件(= 规则集),根据其版本可能略有不同。

The differences that you see between SonarLint and SonarQube will come down to one or more of the reasons as explained above.您在 SonarLint 和 SonarQube 之间看到的差异将归结为上述一个或多个原因。

Who usually provide the xml rulesets for PMD, Checkstyle etc in the company?公司中PMD、Checkstyle等的xml规则集通常由谁提供? Is it the sonar team or the architecture team?是声纳团队还是架构团队? or the project team leads create one and provide it to the team.或者项目团队负责人创建一个并将其提供给团队。

That depends on the company, and any answer to this would be subjective.这取决于公司,对此的任何回答都是主观的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM