Default value type must match registered type
Recipe ID
OpenRewrite.Recipes.CSharp.CodeQuality.Wpf.FindDefaultValueTypeMismatchArtifactOpenRewrite.Recipes.CSharp.CodeQualityA DependencyProperty is registered with a type and its metadata carries a default value typed object, so the compiler cannot check one against the other. Flags a default value whose type does not fit the registered type, which throws at run time.
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.FindDefaultValueTypeMismatchIf the recipe isn’t available locally, install it with:
mod config recipes nuget install OpenRewrite.Recipes.CSharp.CodeQuality