Prefer val over var

Proprietary

Finds mutable var declarations in Scala code. Idiomatic Scala prefers immutable val over mutable var.

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

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