-
Notifications
You must be signed in to change notification settings - Fork 27
/
scalac.options.local.template
30 lines (29 loc) · 1.17 KB
/
scalac.options.local.template
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
# To change your local scalac configuration - e.g., to turn off assertions -
# rename this file by removing the ".template" suffix. The scalac options in
# this file will take precedence over the ones defined in the file "scalac.options"
#
# 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
-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
// (Should be turned-off during development; i.e., assertions are enabled at development time) -Xdisable-assertions