Scala

Scala

Made by DeepSource

Too many method parameters SC-C1002

Style
Minor

This method takes too many parameters - a potential code smell/styling issue which affects the overall readability of the code. Consider using default parameter values/currying.

Bad Practice

def log(message: String, level: String) = println(s"$level: $message")

Recommended

def log(message: String, level: String = "INFO") = println(s"$level: $message")

References: