akka-stream compiler warnings as fatal errors (#26673)
This commit is contained in:
parent
6207484c0e
commit
7e7901ad49
53 changed files with 276 additions and 183 deletions
|
|
@ -25,7 +25,8 @@ object AkkaDisciplinePlugin extends AutoPlugin with ScalafixSupport {
|
|||
"akka-protobuf",
|
||||
"akka-stream-typed",
|
||||
"akka-cluster-typed",
|
||||
"akka - cluster - tools")
|
||||
"akka-cluster-tools",
|
||||
"akka-stream")
|
||||
|
||||
val strictProjects = Set("akka-discovery", "akka-protobuf", "akka-coordination")
|
||||
|
||||
|
|
@ -48,7 +49,7 @@ object AkkaDisciplinePlugin extends AutoPlugin with ScalafixSupport {
|
|||
silencerSettings ++
|
||||
scoverageSettings ++ Seq(
|
||||
Compile / scalacOptions ++= (
|
||||
if (fatalWarningsFor(name.value)) Seq("-Xfatal-warnings")
|
||||
if (!scalaVersion.value.startsWith("2.11") && fatalWarningsFor(name.value)) Seq("-Xfatal-warnings")
|
||||
else Seq.empty
|
||||
),
|
||||
Test / scalacOptions --= testUndicipline,
|
||||
|
|
@ -64,11 +65,6 @@ object AkkaDisciplinePlugin extends AutoPlugin with ScalafixSupport {
|
|||
"-Yno-adapted-args")
|
||||
case Some((2, 12)) =>
|
||||
disciplineScalacOptions
|
||||
case Some((2, 11)) =>
|
||||
disciplineScalacOptions ++ Set("-language:existentials") -- Set(
|
||||
"-Ywarn-extra-implicit",
|
||||
"-Ywarn-unused:_",
|
||||
"-Ypartial-unification")
|
||||
case _ =>
|
||||
Nil
|
||||
}).toSeq,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue