Skip to content

Commit f6caed8

Browse files
committed
Enable explicit nulls for most community projects
1 parent 5a87908 commit f6caed8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

community-build/src/scala/dotty/communitybuild/projects.scala

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ object SbtCommunityProject:
138138
def scalacOptions = List(
139139
"-Xcheck-macros",
140140
"-Wsafe-init",
141+
"-Yexplicit-nulls",
141142
)
142143

143144
object projects:
@@ -277,7 +278,8 @@ object projects:
277278
// Problem parsing scalatest.dotty/target/scala-3.0.0-M2/src_managed/main/org/scalatest/concurrent/ConductorFixture.scala:[602..624..3843], documentation may not be generated.
278279
// dotty.tools.dotc.core.MissingType:
279280
dependencies = List(scalaXml),
280-
testOnlyDependencies = () => List(scalatestplusJunit, scalatestplusTestNG)
281+
testOnlyDependencies = () => List(scalatestplusJunit, scalatestplusTestNG),
282+
scalacOptions = SbtCommunityProject.scalacOptions.filter(_ != "-Yexplicit-nulls")
281283
)
282284

283285
lazy val scalatestplusScalacheck = SbtCommunityProject(
@@ -306,7 +308,8 @@ object projects:
306308
project = "scala-xml",
307309
sbtTestCommand = "xml/test",
308310
sbtPublishCommand = "xml/publishLocal",
309-
sbtDocCommand = "xml/doc"
311+
sbtDocCommand = "xml/doc",
312+
scalacOptions = SbtCommunityProject.scalacOptions.filter(_ != "-Yexplicit-nulls"),
310313
)
311314

312315
lazy val scalap = SbtCommunityProject(

0 commit comments

Comments
 (0)