← All recipes
Moderne licensed

StyleTypedProperty.Property should be specified only once

Recipe IDOpenRewrite.Recipes.CSharp.CodeQuality.Wpf.RequireUniqueStyleTypedPropertyArtifactOpenRewrite.Recipes.CSharp.CodeQuality

Two [StyleTypedProperty] attributes naming the same Property contradict each other. Flags every attribute in such a group.

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.Wpf.RequireUniqueStyleTypedProperty

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

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