Threat Stack recently published a sound review of scala’s compiler flags. Here’s the archived links:
In summary, the following options are recommended:
scalacOptions ++= Seq( "-deprecation", "-unchecked", "-target:jvm-1.8", "-encoding", "UTF-8", "-Xfuture", "-Yno-adapted-args", "-Ywarn-dead-code", "-Ywarn-numeric-widen", "-Ywarn-value-discard", "-Ywarn-unused", "-feature", "-Xlint" )
Tweet