Benefits of using Sonar vs. pure Roslyn code analysis

This is a qualitative question, so I’ll forgo the technical information for this post.

I am looking for a code analysis / linting tool for C# projects. After reading about SonarSource and doing some preliminary analyses, it seems to me that many rules in the C# SonarSource ruleset are based upon Roslyn .Net analyzers. In this guide it is even stated that the SonarSource code analyzer is a Roslyn analyzer. However, if there is an expanded ruleset, it seems to me that only a subset of the SonarSource ruleset is extending from Roslyn.

I’m hoping to get a definitive answer on the nature of the SonarSource inheritance from Roslyn to judge whether it is a better analysis tool than using the native Roslyn analyzers.

Hey there.

Please don’t raise duplicate threads. I will close this one.

2 Likes