← All recipes
Moderne licensed

Find methods not forwarding CancellationToken

Recipe IDOpenRewrite.Recipes.CSharp.CodeQuality.Performance.FindMissingCancellationTokenArtifactOpenRewrite.Recipes.CSharp.CodeQuality

Detect calls to async methods that may have CancellationToken overloads but are called without one. Uses name-based heuristics.

Single recipecsharpperformancecode-qualityProprietary

Usage

This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.

mod run . --recipe OpenRewrite.Recipes.CSharp.CodeQuality.Performance.FindMissingCancellationToken

If the recipe isn’t available locally, install it with:

mod config recipes nuget install OpenRewrite.Recipes.CSharp.CodeQuality