Call AddHandler in add

Proprietary

The add accessor of an event backed by a RoutedEvent must call AddHandler. Flags an accessor that calls RemoveHandler instead, which would silently discard subscriptions.

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

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