Closed tisonv closed 3 months ago
Right, the warning should not be triggered in this case, I'll look into it. Using string.Equals doesn't have that problem though.
while (!string.Equals(d, @"S:\", StringComparison.OrdinalIgnoreCase))
d = Path.GetDirectoryName(d);
The fix is available in version 1.5.1
Describe the bug EC69 is wrongly reported
To Reproduce Steps to reproduce the behavior:
EC69 is detected on
p.Equals(@"S:\", StringComparison.OrdinalIgnoreCase)
Expected behavior p mutates at each iteration. There's no invariant function in the loop. EC69 should not be fired.
Screenshots No screenshot
Software Versions
Additional context No additional context