@@ -4,53 +4,53 @@ object CompileFlags {
44 val flags = Seq (
55 " -deprecation" , // Emit warning and location for usages of deprecated APIs.
66 " -encoding" ,
7- " utf-8" , // Specify character encoding used by source files.
7+ " utf-8" , // Specify character encoding used by source files.
88 " -explaintypes" , // Explain type errors in more detail.
9- " -feature" , // Emit warning and location for usages of features that should be imported explicitly.
9+ " -feature" , // Emit warning and location for usages of features that should be imported explicitly.
1010 " -language:postfixOps" ,
11- " -language:existentials" , // Existential types (besides wildcard types) can be written and inferred
11+ " -language:existentials" , // Existential types (besides wildcard types) can be written and inferred
1212 " -language:experimental.macros" , // Allow macro definition (besides implementation and application)
13- " -language:higherKinds" , // Allow higher-kinded types
13+ " -language:higherKinds" , // Allow higher-kinded types
1414 " -language:implicitConversions" , // Allow definition of implicit functions called views
15- " -unchecked" , // Enable additional warnings where generated code depends on assumptions.
16- " -Xcheckinit" , // Wrap field accessors to throw an exception on uninitialized access.
17- " -Xfatal-warnings" , // Fail the compilation if there are any warnings.
18- " -Xlint:adapted-args" , // Warn if an argument list is modified to match the receiver.
19- " -Xlint:constant" , // Evaluation of a constant arithmetic expression results in an error.
20- " -Xlint:delayedinit-select" , // Selecting member of DelayedInit.
21- " -Xlint:doc-detached" , // A Scaladoc comment appears to be detached from its element.
22- " -Xlint:inaccessible" , // Warn about inaccessible types in method signatures.
23- " -Xlint:infer-any" , // Warn when a type argument is inferred to be `Any`.
24- " -Xlint:missing-interpolator" , // A string literal appears to be missing an interpolator id.
25- " -Xlint:nullary-override" , // Warn when non-nullary `def f()' overrides nullary `def f'.
26- " -Xlint:nullary-unit" , // Warn when nullary methods return Unit.
27- " -Xlint:option-implicit" , // Option.apply used implicit view.
15+ " -unchecked" , // Enable additional warnings where generated code depends on assumptions.
16+ " -Xcheckinit" , // Wrap field accessors to throw an exception on uninitialized access.
17+ " -Xfatal-warnings" , // Fail the compilation if there are any warnings.
18+ " -Xlint:adapted-args" , // Warn if an argument list is modified to match the receiver.
19+ " -Xlint:constant" , // Evaluation of a constant arithmetic expression results in an error.
20+ " -Xlint:delayedinit-select" , // Selecting member of DelayedInit.
21+ " -Xlint:doc-detached" , // A Scaladoc comment appears to be detached from its element.
22+ " -Xlint:inaccessible" , // Warn about inaccessible types in method signatures.
23+ " -Xlint:infer-any" , // Warn when a type argument is inferred to be `Any`.
24+ " -Xlint:missing-interpolator" , // A string literal appears to be missing an interpolator id.
25+ " -Xlint:nullary-override" , // Warn when non-nullary `def f()' overrides nullary `def f'.
26+ " -Xlint:nullary-unit" , // Warn when nullary methods return Unit.
27+ " -Xlint:option-implicit" , // Option.apply used implicit view.
2828 " -Xlint:poly-implicit-overload" , // Parameterized overloaded implicit methods are not visible as view bounds.
29- " -Xlint:private-shadow" , // A private field (or class parameter) shadows a superclass field.
30- " -Xlint:stars-align" , // Pattern sequence wildcard must align with sequence component.
31- " -Xlint:type-parameter-shadow" , // A local type parameter shadows a type already in scope.
32- " -Ywarn-dead-code" , // Warn when dead code is identified.
33- " -Ywarn-extra-implicit" , // Warn when more than one implicit parameter section is defined.
34- " -Ywarn-numeric-widen" , // Warn when numerics are widened.
35- " -Ywarn-unused:implicits" , // Warn if an implicit parameter is unused.
36- " -Ywarn-unused:imports" , // Warn if an import selector is not referenced.
37- " -Ywarn-unused:locals" , // Warn if a local definition is unused.
38- " -Ywarn-unused:params" , // Warn if a value parameter is unused.
39- " -Ywarn-unused:patvars" , // Warn if a variable bound in a pattern is unused.
40- " -Ywarn-unused:privates" , // Warn if a private member is unused.
41- " -Ywarn-value-discard" // Warn when non-Unit expression results are unused.
29+ " -Xlint:private-shadow" , // A private field (or class parameter) shadows a superclass field.
30+ " -Xlint:stars-align" , // Pattern sequence wildcard must align with sequence component.
31+ " -Xlint:type-parameter-shadow" , // A local type parameter shadows a type already in scope.
32+ " -Ywarn-dead-code" , // Warn when dead code is identified.
33+ " -Ywarn-extra-implicit" , // Warn when more than one implicit parameter section is defined.
34+ " -Ywarn-numeric-widen" , // Warn when numerics are widened.
35+ " -Ywarn-unused:implicits" , // Warn if an implicit parameter is unused.
36+ " -Ywarn-unused:imports" , // Warn if an import selector is not referenced.
37+ " -Ywarn-unused:locals" , // Warn if a local definition is unused.
38+ " -Ywarn-unused:params" , // Warn if a value parameter is unused.
39+ " -Ywarn-unused:patvars" , // Warn if a variable bound in a pattern is unused.
40+ " -Ywarn-unused:privates" , // Warn if a private member is unused.
41+ " -Ywarn-value-discard" // Warn when non-Unit expression results are unused.
4242 )
4343
4444 val flags212 = Seq (
4545 " -Xfuture" , // Turn on future language features.
4646 " -Yno-adapted-args" , // Do not adapt an argument list (either by inserting () or creating a tuple) to match the receiver.
4747 " -Xlint:by-name-right-associative" , // By-name parameter of right associative operator.
48- " -Xlint:unsound-match" , // Pattern match may not be typesafe.
49- " -Ypartial-unification" , // Enable partial unification in type constructor inference
50- " -Ywarn-inaccessible" , // Warn about inaccessible types in method signatures.
51- " -Ywarn-infer-any" , // Warn when a type argument is inferred to be `Any`.
52- " -Ywarn-nullary-override" , // Warn when non-nullary `def f()' overrides nullary `def f'.
53- " -Ywarn-nullary-unit" // Warn when nullary methods return Unit.
48+ " -Xlint:unsound-match" , // Pattern match may not be typesafe.
49+ " -Ypartial-unification" , // Enable partial unification in type constructor inference
50+ " -Ywarn-inaccessible" , // Warn about inaccessible types in method signatures.
51+ " -Ywarn-infer-any" , // Warn when a type argument is inferred to be `Any`.
52+ " -Ywarn-nullary-override" , // Warn when non-nullary `def f()' overrides nullary `def f'.
53+ " -Ywarn-nullary-unit" // Warn when nullary methods return Unit.
5454 )
5555
5656 val flags213 = Seq (
0 commit comments