Avoid side effects in attached property CLR accessors

Proprietary

XAML bypasses the CLR Get/Set methods of an attached property and calls GetValue/SetValue directly, so any other work an accessor does runs only when the property is set from code. Flags the offending statement.

OpenRewrite.Recipes.CSharp.CodeQuality.Wpf.FindSideEffectsInAttachedPropertyAccessor
mod run . --recipe=OpenRewrite.Recipes.CSharp.CodeQuality.Wpf.FindSideEffectsInAttachedPropertyAccessor

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.