-
Notifications
You must be signed in to change notification settings - Fork 27
/
scalac.options
29 lines (28 loc) · 1.08 KB
/
scalac.options
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
# This file specifies the default (standard) scalac options in the global context.
# It may be overridden by the presence of a "local.scalac.options" file.
# In sbt lingo, the assertion is "scalacOptions in ThisBuild := Seq(<lines of this file>)"
# This file takes exactly one scalac flag per line; empty lines and whitespace at the
# beginning and end are trimmed and "#" and "//" mark comment lines.
-encoding UTF8
-release:8
-deprecation
-feature
-unchecked
// -Xfuture deprecated in Scala 2.13. Replaced by -Xsource
// -Xsource:3
-Xfatal-warnings
-Wnumeric-widen
-Xlint:nullary-unit
// -Xlint:nullary-override
-Wunused:imports,privates,locals,implicits
// Buggy (Scala 2.12.5) "-Ywarn-unused:params,patvars"
-Xlint:infer-any
-Wdead-code
-Xlint:inaccessible
-Xlint:adapted-args
-Xdisable-assertions
-Ybackend-parallelism 8
// Scala 2.13 is not able to turn certain `match` expressions to `tableswitch` statements.
// Therefore, we suppress the warnings of switch annotations. This issue is fixed in Scala 3.
// TODO: remove this option in Scala 3
-Wconf:cat=unused-nowarn:s,msg=could\snot\semit\sswitch:s