Remove self-assignment

Proprietary

Remove assignment statements where the variable is assigned to itself, such as x = x. These have no effect and are likely copy-paste errors.

OpenRewrite.Recipes.CSharp.CodeQuality.Redundancy.RemoveSelfAssignment
mod run . --recipe=OpenRewrite.Recipes.CSharp.CodeQuality.Redundancy.RemoveSelfAssignment

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