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