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

1 Like

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