How to create custom rules for .net

Hi,

I am trying to create custom rules for .net. Already I created custom rules for PHP and Javascript using Java.it is working fine but I am not sure about .net custom rules. So please anyone guide me how to create custom rules for .net and what are the required applications need to be installed for that. Provide me the very detailed steps for creating .net custom rules because I am new to sonarqube tool.

Thanks,
Obusorna

Hi @obusorna_k,

This post has some pointers that will get you started.

The first step, writing a custom Roslyn analyzer, has nothing to do with SonarQube. There are a lot of resources and examples on the web to help you. If you have any questions about that part, I’d suggest asking in a general forum like StackOverflow.