-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
36 lines (32 loc) · 1.02 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import Wart._
val scala2Version = "2.13.8"
lazy val root = project
.in(file("."))
.settings(
name := "global--",
version := "0.1.0-SNAPSHOT",
organization := "dev.fosfor",
scalaVersion := scala2Version,
scalacOptions ++= Seq(
"-deprecation",
"-feature",
"-unchecked",
"-language:higherKinds",
"-Ywarn-value-discard",
),
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,
DefaultArguments, ImplicitParameter, ImplicitConversion,
StringPlusAny, Any,
JavaSerializable, Serializable, Product,
LeakingSealed, Overloading,
Option2Iterable, TraversableOps, ListAppend
),
libraryDependencies += "com.lihaoyi" %% "fastparse" % "2.3.2",
libraryDependencies += "com.lihaoyi" %% "ammonite-ops" % "2.4.0",
)