Scala

Scala

Made by DeepSource

Consider explicitly defining the main method, i.e. the entry point SC-W1062

Anti-pattern
Major

Scala allows you to inherit from scala.App (which uses DelayedInit) to set up a simple and small Main program. However, since DelayedInit is now deprecated, it is recommended that you define a suitable entry point of your own.

Bad practice

object Main extends App

Recommended

object Main {
  def main(args: Array[String]): Unit = {}
}