C# custom rules

Greetings!

Is it possible to create custom rules for C# within SonarQube?
The only method I was able to find was importing an analyzer created with Roslyn, is there a easier way? If not, can you please guide me on how to import it?

Thank you in advance.

Hi,

Welcome to the community!

Roslyn is the way to go for C#; we don’t offer anything else.

 
:woman_shrugging:
Ann

Any reason you all dont allow custom Regex rules for C#? We’re correcting patterns in our codebase all the time that could be helped by adding custom Regex rules…

Hi @gizmohd,

You’ve resurrected a 2y-old thread. Please don’t do that.

If you’d like to have this discussion, please create a new thread, with the full details of your situation.

 
Thx,
Ann