File tree 1 file changed +20
-4
lines changed 1 file changed +20
-4
lines changed Original file line number Diff line number Diff line change 1
1
load ("//scala:scala.bzl" , "scala_library" )
2
+ load ("@io_bazel_rules_scala_config//:config.bzl" , "SCALA_MAJOR_VERSION" )
2
3
3
4
scala_library (
4
5
name = "test_reporter" ,
@@ -14,13 +15,28 @@ scala_library(
14
15
"-unchecked" ,
15
16
"-Xfatal-warnings" ,
16
17
"-Xlint" ,
17
- # TODO: commented out due to Scala 2.13 "-Yno-adapted-args",
18
18
"-Ywarn-dead-code" ,
19
19
"-Ywarn-numeric-widen" ,
20
20
"-Ywarn-value-discard" ,
21
- # TODO: commented out due to Scala 2.13 "-Xfuture",
22
- # TODO: commented out due to Scala 2.13 "-Ywarn-unused-import",
23
- # TODO: commented out due to Scala 2.13 "-Ypartial-unification",
21
+ "-Wunused:imports" ,
22
+ ] if SCALA_MAJOR_VERSION == "2.13" else [
23
+ "-deprecation:true" ,
24
+ "-encoding" ,
25
+ "UTF-8" ,
26
+ "-feature" ,
27
+ "-language:existentials" ,
28
+ "-language:higherKinds" ,
29
+ "-language:implicitConversions" ,
30
+ "-unchecked" ,
31
+ "-Xfatal-warnings" ,
32
+ "-Xlint" ,
33
+ "-Yno-adapted-args" ,
34
+ "-Ywarn-dead-code" ,
35
+ "-Ywarn-numeric-widen" ,
36
+ "-Ywarn-value-discard" ,
37
+ "-Xfuture" ,
38
+ "-Ywarn-unused-import" ,
39
+ "-Ypartial-unification" ,
24
40
],
25
41
visibility = ["//visibility:public" ],
26
42
deps = [
You can’t perform that action at this time.
0 commit comments