DotNetAnalyzers/IDisposableAnalyzers

IDISP013 false positive

sungam3r opened this issue · 0 comments

See https://github.com/Xabaril/AspNetCore.Diagnostics.HealthChecks/blob/eaa25c2ee61eb13ef887fe5b3e2c3abfb2454984/src/HealthChecks.IbmMQ/IbmMQHealthCheck.cs#L32

изображение

Possible "fix":
изображение

Reading docs about that I think that it's worth to make check better by inspecting that disposable object is really used in using block. In all my cases I just return constant value.