Fix S2259 FP: Engine does not learn NotNull
from LINQ methods
#8907
Labels
Area: C#
C# rules related issues.
Area: CFG/SE
CFG and SE related issues.
Area: VB.NET
VB.NET rules related issues.
Sprint: Hardening
Fix FPs/FNs/improvements
Type: CFG/SE FPs
Rule IS triggered when it shouldn't be for CFG and SE rules.
Most LINQ methods like
.Count()
do throw when the collection isnull
. The engine should learnNotNull
when a method like this is invoked to avoid FPs (e.g., for S2259).Related: #8908
The text was updated successfully, but these errors were encountered: