From 24249808dabd0b3bf4c758e4c5f38d3cf277c9ea Mon Sep 17 00:00:00 2001 From: Lionel Parreaux Date: Tue, 19 Mar 2024 22:43:53 +0800 Subject: [PATCH] Consolidate some SBT options --- build.sbt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/build.sbt b/build.sbt index 8f4ff503f5..458788c522 100644 --- a/build.sbt +++ b/build.sbt @@ -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(".")) @@ -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,