Extract magic numbers to named constants

Proprietary

Finds 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.ExtractMagicNumber
mod run . --recipe=org.openrewrite.scala.cleanup.ExtractMagicNumber

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