Fix S2342 FP: Flaky reports #9683
Labels
Area: C#
C# rules related issues.
Area: VB.NET
VB.NET rules related issues.
Type: False Positive
Rule IS triggered when it shouldn't be.
Description
During ci-build, we randomly get build errors such as the following:
The affected
[Flags]
enum is namedFastTestConfigurations
, which complies with the rule. Because we sometimes get this error, but not always, I suspect a static regex is being used that isn't thread-safe.Repro steps
Not available, it happens randomly, but not always. I've seen this multiple times in Azure DevOps, running on Ubuntu against .NET 8. I haven't experienced it locally on Windows 11.
Known workarounds
Restart the cibuild, which usually makes the error go away.
Related information
The text was updated successfully, but these errors were encountered: