← All recipes
Moderne licensed

Accessor method for attached property should have standard documentation text

Recipe IDOpenRewrite.Recipes.CSharp.CodeQuality.Wpf.DocumentAttachedPropertyAccessorArtifactOpenRewrite.Recipes.CSharp.CodeQuality

The static GetBar/SetBar accessors of an attached property should be documented with the standard summary, <param> and <returns> text naming the backing member and the registered name. 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.DocumentAttachedPropertyAccessor

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

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