How to integrate Custom Roslyn Rules with SonarQube

Which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)

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


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.