Why would "unused import" be a fatal compilation error with sbt?

Viewed 2139

Is there any place i should look for to locally make these warns at compile time, not errors?

1 Answers

This is needed to keep your import section as small and clean as possible. Moreover, wildcard imports in certain circumstances could cause implicit clash on an additional implicit declaration. That's why.

How to disable - "-Xfatal-warnings" should be searched for in sbt files and removed. Also, you could search for "-Ywarn-unused-imports" to disable this warning.

Related