How to integrate Custom Roslyn Rules with SonarQube

Which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
sonarqube-8.3.1.34397
sonar-scanner-msbuild-4.6.2.2108-net46

What are you trying to achieve
I have written custom Roslyn rules to analyze code smells in my project. Now I want to know how I can analyse the code smells using my custom rules and export to SonarQube.

Please note, currently when I run the below commands it’s only exporting the default issues.
So I want your help to add my custom rules to analyze and export to SonarQube

SonarScanner.MSBuild.exe begin /k:ProjectName"
MSBuild.exe E:\ProjectName /t:Rebuild
SonarScanner.MSBuild.exe end

Hi,

Welcome to the community!

Are you running your custom rules during the build? According to the docs (bottom of the page), this should work automatically.

 
Ann