Skip to content

Instantly share code, notes, and snippets.

@frosforever
Last active August 29, 2015 14:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frosforever/817a0277019db1acdfdd to your computer and use it in GitHub Desktop.
Save frosforever/817a0277019db1acdfdd to your computer and use it in GitHub Desktop.
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