Scala

Scala

Made by DeepSource

Empty interpolated string SC-W1011

Bug risk
Critical

Empty interpolated string is usually a result of human error - either that the programmer forgot to specify the required arguments, or that the string wasn't meant to be interpolated. Such strings can critically alter the behaviour and control-flow of the program if the program relies on it.

Bad Practice

val intro = s"Hi! My name is name"

Recommended

val intro = s"Hi! My name is $name"