False Positive: Do not call SuppressFinalize

Our SonarQube installation is giving false positives for S3971, “Do not call ‘GC.SuppressFinalize’”

In this instance, the class implements the IAsyncDisposable pattern IAW the best practices published at Implement a DisposeAsync method

Hi @Steel_Gadget,

We can confirm the false positive. I’ve added an issue on sonar-dotnet and the progress can be tracked there: https://github.com/SonarSource/sonar-dotnet/issues/3639.

Thanks for your feedback!
Costin

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.