-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompiler.sbt
55 lines (48 loc) · 1.51 KB
/
compiler.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
crossScalaVersions in ThisBuild := Seq("2.11.12", "2.12.6")
scalaVersion in ThisBuild := "2.12.6"
scalacOptions in ThisBuild := {
/*scalafixScalacOptions.value*/ Nil ++
(CrossVersion.partialVersion(scalaVersion.value) match {
/** See also [[https://tpolecat.github.io/2014/04/11/scalac-flags.html ''Useful Scalac Flags'']]. */
case Some((2, 11)) =>
"-encoding" :: "UTF-8" ::
"-target:jvm-1.8" ::
Nil
/** See also [[https://tpolecat.github.io/2017/04/25/scalac-flags.html ''Recommended Scalac Flags for 2.12'']]. */
case Some((2, 12)) =>
"-encoding" :: "UTF-8" ::
"-target:jvm-1.8" ::
"-deprecation" ::
"-explaintypes" ::
"-feature" ::
// "-language:existentials" ::
// "-language:experimental.macros" ::
// "-language:higherKinds" ::
// "-language:implicitConversions" ::
"-unchecked" ::
"-Xcheckinit" ::
"-Xfatal-warnings" ::
// "-Xfuture" ::
// "-Xlint" ::
"-Xlint:-unused,_" ::
"-Yno-adapted-args" ::
"-Ypartial-unification" ::
"-Ywarn-dead-code" ::
"-Ywarn-extra-implicit" ::
"-Ywarn-inaccessible" ::
"-Ywarn-infer-any" ::
"-Ywarn-nullary-override" ::
"-Ywarn-nullary-unit" ::
"-Ywarn-numeric-widen" ::
// "-Ywarn-unused:implicits" ::
// "-Ywarn-unused:imports" ::
// "-Ywarn-unused:locals" ::
// "-Ywarn-unused:params" ::
// "-Ywarn-unused:patvars" ::
// "-Ywarn-unused:privates" ::
// "-Ywarn-value-discard" ::
Nil
case _ =>
Nil
})
}