Open BrianSetz opened 9 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"
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"