Extract magic numbers to named constants
ProprietaryFinds magic numbers (literal integers other than -1, 0, 1, 2) used in expressions or method arguments. Consider extracting them to named constants.
org. openrewrite. scala. cleanup. ExtractMagicNumbermod run . --recipe= org. openrewrite. scala. cleanup. ExtractMagicNumberInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.