Replace do-while loops (removed in Scala 3)

Proprietary

Finds do-while loops which were removed in Scala 3. Rewrite using a while loop with initial execution of the loop body.

org.openrewrite.scala.migrate.scala3.ReplaceDoWhileLoop
mod run . --recipe=org.openrewrite.scala.migrate.scala3.ReplaceDoWhileLoop

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