Use postfix increment/decrement
ProprietaryReplace x = x + 1 with x++ and x = x - 1 with x--.
OpenRewrite. Recipes. CSharp. CodeQuality. Simplification. UsePostfixIncrementmod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Simplification. UsePostfixIncrementInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.