Avoid side effects in CLR accessors

Proprietary

The get and set accessors of a CLR property wrapping a dependency property must only call GetValue/SetValue, because the property system bypasses them entirely. Flags any other statement in an accessor body.

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

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