Find numeric literals other than 0, 1, -1

Proprietary

Magic numbers in code hide units, bounds, and protocol constants from a reader. Each match is a candidate to extract to a named const val so a reviewer or LLM agent can see the intent (MAX_RETRIES, BUFFER_BYTES, etc.) rather than the bare literal.

org.openrewrite.kotlin.search.FindMagicNumbers$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.search.FindMagicNumbers$KtRecipe'

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