.NET Analysis now supports ImmutableCollection

Hello, fellow .NET developers,

We have just published version 10.9 of our analyzer that features, amongst other enhancements, support for Immutable collections.

Looking at our bug detection rules, we realized some of the problems we had with them stemmed from not considering what an ImmutableCollection actually means.
The team set out to correct that, and we know consider ImmutableCollection’s specific features when tracking potential runtime issues.
For example, we know that calling Add on an ImmutableCollection builds a new, separate instance, and the original one remains untouched.

We also implemented support for Linq methods (Union, Concat) to be more precise in our analysis.

This all will translate to a more precise analysis, with less false-positives.

You can enjoy this new version on SonarQube Cloud today, and it will be available in SonarQube Server 2025.3.

As always, we await your feedback!

Denis