SonarQube custom Roslyn rules c#

I created a Roslyn analyser c# with a custom rule and i added it as an analyser on my project on VS2017, it works fine and detect the syntaxe error.
I used the Roslyn SDK project to generate .jar file and added it as an extention plugin to sonarqube 7.6.
I can see it on the c# rules under “Repository”, i activated it and added it to my quality profile.
I use jenkins to launch a sonar scanner, i get all the analysis for the default rules but not for my custom rule.
Could you please help if you have any idea.


can you add the logs from the commands you are running?


  1. what is the version of SQ?
  2. what is the version of the SQ Scanner for MSBuild you are using?
  3. please share in a file (you can attach it when replying) the verbose output of the command using the parameter /d:sonar.verbose=true for the BEGIN step (e.g. SonarScanner.MSBuild.exe begin /k:"MyProject" /d:sonar.verbose=true), and please attach the output of END step

A post was merged into an existing topic: New Custom Rule C# not working