Find unawaited task return in using block

Proprietary

Detect return of a Task inside a using block without await. The resource may be disposed before the task completes.

OpenRewrite.Recipes.CSharp.CodeQuality.Style.FindAwaitTaskBeforeDisposing
mod run . --recipe=OpenRewrite.Recipes.CSharp.CodeQuality.Style.FindAwaitTaskBeforeDisposing

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.