Scala

Scala

Made by DeepSource

Consider using the as keyword for import aliases SC-R1081

Anti-pattern
Major

Scala 2 used the => token in import aliases. However, Scala 3 has changed this syntax and now recommends that you use the as keyword instead. While both the syntaxes are valid in the present Scala 3 versions for now, it is likely going to change in the near future. Consider migrating to the newer syntax as soon as possible.

Bad Practice

import scala.collection.{mutable => m}

Recommended

import scala.collection.{mutable as m}

Reference