← All recipes
Moderne licensed

Property changed callback should have standard documentation text

Recipe IDOpenRewrite.Recipes.CSharp.CodeQuality.Wpf.DocumentPropertyChangedCallbackArtifactOpenRewrite.Recipes.CSharp.CodeQuality

The virtual method invoked from a dependency property's PropertyChangedCallback should be documented with <summary>This method is invoked when the <see cref="BarProperty"/> changes.</summary> and a <param> describing each of its old- and new-value parameters. Adds the documentation when it is missing and corrects it when it says something else.

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.DocumentPropertyChangedCallback

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

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