Use compound assignment

Proprietary

Replace x = x op y with x op= y for arithmetic, bitwise, shift, and null-coalescing operators.

OpenRewrite.Recipes.CSharp.CodeQuality.Simplification.UseCompoundAssignment
mod run . --recipe=OpenRewrite.Recipes.CSharp.CodeQuality.Simplification.UseCompoundAssignment

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