← All recipes
Moderne licensed

Find overrides that change parameter defaults

Recipe IDOpenRewrite.Recipes.CSharp.CodeQuality.Style.FindOverrideChangesParameterDefaultsArtifactOpenRewrite.Recipes.CSharp.CodeQuality

Detect override methods with default parameter values. Overrides should not change defaults from the base method as this causes confusing behavior depending on the reference type.

Single recipecsharpstylecode-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.Style.FindOverrideChangesParameterDefaults

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

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