Use compound assignment
ProprietaryReplace x = x op y with x op= y for arithmetic, bitwise, shift, and null-coalescing operators.
OpenRewrite. Recipes. CSharp. CodeQuality. Simplification. UseCompoundAssignmentmod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Simplification. UseCompoundAssignmentInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.