Sonarqube SonarLint Customisation

*爱你&永不变心* 提交于 2019-12-11 11:43:57

问题


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>

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

Thanks in advance

Chris


回答1:


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



来源:https://stackoverflow.com/questions/33569597/sonarqube-sonarlint-customisation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!