Skip to content

Commit

Permalink
silence
Browse files Browse the repository at this point in the history
  • Loading branch information
dmivankov committed Nov 20, 2024
1 parent 8f77ecf commit a2ead8f
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,12 @@ lazy val commonSettings = Seq(
licenses := List("Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt")),
homepage := Some(url("https://github.com/cognitedata/cdp-spark-datasource")),
scalacOptions ++= Seq("-Xlint:unused", "-language:higherKinds", "-deprecation", "-feature") ++ (CrossVersion.partialVersion(scalaVersion.value) match {
case Some((3, _)) => Seq(
"-Wconf:msg=unused value of type org.scalatest.Assertion:s",
"-Wconf:msg=unused value of type org.scalatest.compatible.Assertion:s",
"-Wconf:msg=discarded non-Unit value of type org.scalatest.Assertion:s",
"-Wconf:msg=discarded non-Unit value of type org.scalatest.compatible.Assertion:s",
)
// We use JavaConverters to remain backwards compatible with Scala 2.12,
// and to avoid a dependency on scala-collection-compat
case Some((2, 13)) => Seq(
"-Wconf:src=src/test/scala/cognite/spark/v1/SparkTest.scala&cat=deprecation:i",
"-Wconf:src=src/test/scala/.*&cat=other-pure-statement:i"
"-Wconf:src=src/test/scala/.*&cat=other-pure-statement:i",
"-Wconf:src=src/test/scala/.*&msg=unused value of type org.scalatest.Assertion:s"
)
case Some((2, 12)) => Seq(
"-Wconf:src=src/test/scala/.*&cat=unused:i"
Expand Down

0 comments on commit a2ead8f

Please sign in to comment.