Order Scala imports

MSAL

Groups and sorts each run of adjacent imports the way scalafix's OrganizeImports and IntelliJ IDEA's Scala plugin do by default: other imports first, then java, javax and scala imports, with a blank line between the groups and each sorted by ASCII. Imports never move past other statements, and are neither merged, split nor folded into wildcards.

org.openrewrite.scala.OrderImports
mod run . --recipe=org.openrewrite.scala.OrderImports

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