How to disable Sonar rules for specific files?

后端 未结 6 745
囚心锁ツ
囚心锁ツ 2021-01-03 21:35

I\'ve got a project I\'m working on and some of the files violate some of the rules, but in ways that are not real issues, and are thus distracting noise. However, I don\'t

6条回答
  •  花落未央
    2021-01-03 22:07

    Since SonarQube 4.0, you can define issue exclusion patterns based on rule key and file path pattern.

    On previous versions, you can rely upon the Switch Off Violations plugin.

提交回复
热议问题