Sonarqube SonarLint定制 [英] Sonarqube SonarLint Customisation

查看:243
本文介绍了Sonarqube SonarLint定制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对在IntelliJ上自定义SonarLint感兴趣,我想可以通过sonarlint.xml文件来实现.

I am interested in customising SonarLint on IntelliJ, I am guessing it's possible via the sonarlint.xml file.

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="SonarLintProjectSettings">
    <option name="additionalProperties">
      <map>
        <entry key="squid:S1067.max" value="20" />
        <entry key="squid:S2975" value="True" />
      </map>
    </option>
  </component>
</project>

具体来说,我想禁用某些检查并提高其他检查的阈值,所附的XML是我尝试提高到目前为止尚未实现的环复杂性"的尝试,有人可以将我指向相关文档或请提供示例代码

Specifically I would like to disable some of the checks and increase the thresholds for others, the attached XML is my attempt at increasing the Cyclomatic Complexity for which I have failed so far to achieve, can someone point me at the relevant documentation or code for an example please

预先感谢

克里斯

推荐答案

1.0版不支持这种级别的配置.此功能将在后续版本中逐步提供.

The version 1.0 doesn't support such level of configuration. This will come progressively in next releases.

这篇关于Sonarqube SonarLint定制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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