Use the containing member as the key when creating a ComponentResourceKey

Proprietary

The resourceId of a ComponentResourceKey should identify the member that holds the key. Replaces an id that names something else with nameof(<member>).

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

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