rug-ds-lab / sbt-scala-parent

sbt plugin simplifying creating new sbt-based scala projects
MIT License
1 stars 1 forks source link

Should we expand ScalaOptions with the following? #17

Open BrianSetz opened 9 years ago

BrianSetz commented 9 years ago

Commonly used/recommended:

"-encoding", "UTF-8", "-deprecation", // warning and location for usages of deprecated APIs "-feature", // warning and location for usages of features that should be imported explicitly "-unchecked", // additional warnings where generated code depends on assumptions "-Xlint", // recommended additional warnings "-Xcheckinit", // runtime error when a val is not initialized due to trait hierarchies (instead of NPE somewhere else)

Additionally:

"-Ywarn-unused-import", "-Ywarn-adapted-args", // Warn if an argument list is modified to match the receiver "-Ywarn-value-discard", // Warn when non-Unit expression results are unused "-Ywarn-inaccessible", "-Ywarn-dead-code",

And:

"-Xfatal-warnings"

lazovik commented 8 years ago

commonly used/recommeded added

-Y ones should be first checked if they are still supported (later):

"-Ywarn-unused-import", "-Ywarn-adapted-args", // Warn if an argument list is modified to match the receiver "-Ywarn-value-discard", // Warn when non-Unit expression results are unused "-Ywarn-inaccessible", "-Ywarn-dead-code",

And:

"-Xfatal-warnings"