Keep methods short (max 20 statements)

Proprietary

Finds methods with more than 20 statements. Long methods are harder to understand and maintain; consider refactoring.

org.openrewrite.scala.cleanup.KeepMethodsShort
mod run . --recipe=org.openrewrite.scala.cleanup.KeepMethodsShort

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