Last active
August 29, 2015 14:16
-
-
Save frosforever/817a0277019db1acdfdd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scalacOptions ++= Seq( | |
// "-Xprint:typer", // Turn this on if WartRemover acts up, to see full syntax tree | |
"-deprecation", | |
"-encoding", "UTF-8", // yes, this is 2 args | |
"-feature", | |
"-unchecked", | |
"-Xfatal-warnings", // Treat Warnings as Errors | |
"-Xlint", | |
"-Yno-adapted-args", | |
"-Ywarn-dead-code", // N.B. doesn't work well with the ??? hole | |
"-Ywarn-numeric-widen", | |
"-Ywarn-value-discard", | |
"-Ywarn-unused-import" | |
//"-Xfuture" // Would be nice to have but does not Play well | |
) | |
//Only care about main code. Running in tests will inevitably fail with all the ScalaTest matchers on Any | |
wartremoverWarnings in (Compile, compile) ++= Seq( | |
Wart.Any, | |
Wart.Any2StringAdd, | |
Wart.EitherProjectionPartial, | |
Wart.OptionPartial, | |
Wart.Product, | |
Wart.Serializable, | |
Wart.ListOps, | |
Wart.Nothing | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment