Scala

Scala

Made by DeepSource

Consider grouping imports from same package together SC-R1011

Anti-pattern
Minor

Scala allows you to import entities from same package in separate statements. However, it is generally recommended that you group such imports together. Doing so makes the code more readable and easier to navigate.

Bad practice

import scala.collection.mutable
import scala.collection.immutable

Recommended

import scala.collection.{mutable, immutable}