Prefer custom ExecutionContext over global

Proprietary

Finds imports of scala.concurrent.ExecutionContext.Implicits.global. The global ExecutionContext may not be appropriate for blocking I/O operations; prefer a custom ExecutionContext backed by a dedicated thread pool.

org.openrewrite.scala.concurrency.PreferCustomExecutionContext
mod run . --recipe=org.openrewrite.scala.concurrency.PreferCustomExecutionContext

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