且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在IntelliJ IDEA中自定义SonarLint规则?

更新时间:2021-07-24 09:25:02

SonarLint Eclipse和IntelliJ 1.0不允许编辑用于分析的质量配置文件(或规则集)。此外,SonarLint 1.x完全独立于SonarQube服务器(不需要SonarQube服务器),因此无法重复使用那里定义的质量配置文件。

SonarLint 1.0 for Eclipse and IntelliJ do not allow to edit the quality profile (or set of rules) to be used for the analysis. Moreover, SonarLint 1.x works completely independently of a SonarQube server (having a SonarQube server is not a requirement), and therefore does not have the ability to reuse a quality profile defined there.

SonarLint 2.0将有一个连接SonarQube服务器的可选模式,并将提供此功能 - 但现在还没有。

SonarLint 2.0 will have an optional mode that connects to a SonarQube server, and will offer this feature - but this isn't available yet.