I want to "ban" some or all compiler warnings.
You can pass options from sbt to the scala compiler, including the one that turns warnings into errors.
I usually add these:
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature", "-Xfatal-warnings"),
Per the scalac options documentation, you can pass either -Werror
or -Xfatal-warnings
.
You can do that in sbt by appending to scalacOptions
.
scalacOptions += "-Werror"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With