How can I create my own C# custom rules for SonarQube?

后端 未结 2 820
我在风中等你
我在风中等你 2021-01-13 16:34

I\'ve been doing some research on it. What I found is a list of quite nice samples but for other languages here.

I also looked at sonar-dotnet. But

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-13 17:02

    Well, it depends. If you'd like to create your own rules, I'd say that FxCop custom Rules is the right way to go. Although, I'm kind of puzzled. What kind of the rule you have in mind that doesn't exist yet. If you're not satisfied with the predefined one, you can use StyleCop and/or ReSharper rule sets in addition. Both plugins are configurable. However, when I configure SQ, I normally disable a good part of existing rule as they rather pollute the results with all kinds of styling issues.

提交回复
热议问题