← All recipes
Moderne licensed

Flag empty for loop body

Recipe IDOpenRewrite.Recipes.CSharp.CodeQuality.Redundancy.RemoveEmptyForBodyArtifactOpenRewrite.Recipes.CSharp.CodeQuality

Flag for loops with empty bodies as potential dead code.

Single recipecsharpcode-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.Redundancy.RemoveEmptyForBody

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

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