如何在IntelliJ IDEA中自定义SonarLint规则? [英] How do you customize SonarLint rules in IntelliJ IDEA?

查看:1931
本文介绍了如何在IntelliJ IDEA中自定义SonarLint规则?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以让SonarLint用于IntelliJ IDEA仅强制执行我在Sonar服务器上启用的规则?

Is it possible to have SonarLint for IntelliJ IDEA enforce only the rules I have enabled on my Sonar server?

推荐答案

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.

这篇关于如何在IntelliJ IDEA中自定义SonarLint规则?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆