Skip to content

Commit

Permalink
Consolidate some SBT options
Browse files Browse the repository at this point in the history
  • Loading branch information
LPTK committed Mar 19, 2024
1 parent 703b3cc commit 2424980
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ ThisBuild / scalacOptions ++= Seq(
"-deprecation",
"-feature",
"-unchecked",
"-language:higherKinds",
if (insideCI.value) "-Wconf:any:error"
else "-Wconf:any:warning",
)

lazy val root = project.in(file("."))
Expand All @@ -23,14 +26,9 @@ lazy val mlscript = crossProject(JSPlatform, JVMPlatform).in(file("."))
.settings(
name := "mlscript",
scalacOptions ++= Seq(
"-language:higherKinds",
"-Ywarn-value-discard",
"-Ypatmat-exhaust-depth:160",
),
scalacOptions ++= {
if (insideCI.value) Seq("-Wconf:any:error")
else Seq("-Wconf:any:warning")
},
wartremoverWarnings ++= Warts.allBut(
Recursion, Throw, Nothing, Return, While, IsInstanceOf,
Var, MutableDataStructures, NonUnitStatements,
Expand Down

0 comments on commit 2424980

Please sign in to comment.