Skip to content

Instantly share code, notes, and snippets.

@mlhales
Created January 11, 2015 00:00
Show Gist options
  • Save mlhales/abce39c879353fba9c72 to your computer and use it in GitHub Desktop.
Save mlhales/abce39c879353fba9c72 to your computer and use it in GitHub Desktop.
Useful scalac options.
scalacOptions ++= Seq(
"-deprecation",
"-encoding", "UTF-8", // yes, this is 2 args
"-feature",
"-language:existentials",
"-language:higherKinds",
"-language:implicitConversions",
"-unchecked",
"-Xfatal-warnings",
"-Xlint",
"-Yno-adapted-args",
"-Ywarn-dead-code", // N.B. doesn't work well with the ??? hole
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
"-Xfuture",
"-Ywarn-unused-import" // 2.11 only
"-Yno-predef" // no automatic import of Predef (removes irritating implicits)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment