Prefer .view.mapValues for Scala 2.13+

Proprietary

Finds calls to .mapValues which is deprecated in Scala 2.13+ and returns a lazy view instead of a strict Map. Use .view.mapValues(...).toMap instead.

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

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