Fix S2583 FP: Should not raise on double
condition
#8470
Labels
Area: C#
C# rules related issues.
Area: VB.NET
VB.NET rules related issues.
Type: CFG/SE FPs
Rule IS triggered when it shouldn't be for CFG and SE rules.
Milestone
Description
Rule S2583 does not correctly identify all possible values of a double and incorrectly assumes a double cannot fall between (0, 1).
Repro steps
Expected behavior
The issue should not be flagged since t can be (0, 1).
Actual behavior
S2583 is flagged.
Known workarounds
Please provide a description of any known workarounds.
Related information
The text was updated successfully, but these errors were encountered: