Hi,
How to import third party analyzers to add rules for C# Projects in SonarQube.
Hi,
How to import third party analyzers to add rules for C# Projects in SonarQube.
You can use this plugin to convert roslyn analyzer rules to a sonarqube plugin: https://github.com/SonarSource/sonarqube-roslyn-sdk
In addition to the SonarQube Roslyn SDK (which allows to use rules in Quality Profiles and manage the issues lifecycle), you should also know that issues created by 3rd party roslyn analyzers during the build are picked up the the Scanner for MSBuild by default and pushed to SonarQube.
See https://docs.sonarqube.org/latest/analysis/external-issues/
Notes on external .NET issues
Issues from third-party Roslyn analyzers (including Roslyn analyzers provided by Microsoft) are included in the MSBuild output and imported by default into SonarQube
Thank you. Great work…
Mentioned plugin is to convert Roslyn plugin to Sonarqube plugin…
But, Is there any example to customize the rules. I Mean, How to write code in Roslyn analyzer.??
Microsoft has a tutorial here https://docs.microsoft.com/en-us/dotnet/csharp/roslyn-sdk/tutorials/how-to-write-csharp-analyzer-code-fix