New Code Quality Rules for C# Developers

Hi C# Devs!

I wanted to update you on some improvements to C# Analysis. Firstly we have 3 new rules, that we hope you will find valuable:

Loops should be simplified with “LINQ” expressions

Types should not have members with visibility set higher than the type’s visibility

Non-derived “private” classes should be “sealed”

We’ve also improved the accuracy of some of our favourite rules, see the release notes for more details

These features are already available on SonarCloud, and will be included in SonarQube 9.2 and SonarLint.

Tom