Avoid System.exit in library code

Proprietary

Finds System.exit and sys.exit calls which terminate the JVM. Avoid using these in library code; prefer exceptions or controlled shutdown.

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

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