Reduce deep nesting by extracting methods

Proprietary

Finds def methods with deeply nested code (5+ indentation levels). Deeply nested code is hard to follow; consider extracting methods.

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

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