简体   繁体   English

Sonarqube SonarLint定制

[英]Sonarqube SonarLint Customisation

I am interested in customising SonarLint on IntelliJ, I am guessing it's possible via the sonarlint.xml file. 我对在IntelliJ上自定义SonarLint感兴趣,我想可以通过sonarlint.xml文件来实现。

<?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>

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 具体来说,我想禁用某些检查并提高其他检查的阈值,所附的XML是我尝试提高迄今为止尚未实现的“环复杂性”,有人可以将我的相关文档或代码指向请举例

Thanks in advance 提前致谢

Chris 克里斯

The version 1.0 doesn't support such level of configuration. 1.0版不支持这种级别的配置。 This will come progressively in next releases. 这将在后续版本中逐步提供。

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

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