Simplify numeric comparison
ProprietarySimplify x - y > 0 to x > y, x - y < 0 to x < y, x - y >= 0 to x >= y, and x - y <= 0 to x <= y.
OpenRewrite. Recipes. CSharp. CodeQuality. Simplification. SimplifyNumericComparisonmod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Simplification. SimplifyNumericComparisonInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.