SonarLint 和 "common-java" 分析器

SonarLint and "common-java" analyzers

在 InteliJ 中使用带有 SonarLint 的 Sonar 6.7,规则 "Source files should have a sufficient density of comment lines" 在 Sonar 分析期间弹出。但由于这不是 Sonar 规则 ("squid:") 而是 "common-java",因此 SonarLint 不会报告它。 有没有办法在提交前应用这样的规则?

谢谢

在对 SonarQube 插件 (https://github.com/sonar-intellij-plugin/sonar-intellij-plugin) 进行更多谷歌搜索后,可以使用并且完美运行。连接到 Sonar 服务器,根据服务器配置执行本地分析(问题不会在服务器上创建),仅报告新问题并且可以将其挂钩到提交前完成的自动分析。