Fix S2583 FP: List is filled in local function, then checking its Count is > 0 #9671
Labels
Area: C#
C# rules related issues.
Type: CFG/SE FPs
Rule IS triggered when it shouldn't be for CFG and SE rules.
Description
There's a false positive for S2583 with the below snippet
Repro steps
Expected behavior
No occurence of S2583
Actual behavior
S2583 is raised on
if (list.Count > 0)
Known workarounds
None
Related information
The text was updated successfully, but these errors were encountered: