Prefer Vector or prepend for append-heavy workloads

Proprietary

Finds usage of the :+ operator to append to a List, which is O(n). Prefer Vector for append-heavy workloads or prepend with :: instead.

org.openrewrite.scala.performance.PreferVectorOrPrepend
mod run . --recipe=org.openrewrite.scala.performance.PreferVectorOrPrepend

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