Skip to content

Commit f3a3ede

Browse files
committed
-Xfatal-warnings always
1 parent 22f949c commit f3a3ede

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ThisBuild / developers := List(Developer("jakubjanecek", "Jakub Janecek", "janec
66

77
ThisBuild / turbo := true
88

9-
lazy val commonSettings = BuildHelper.settingsCommon ++ Seq(
9+
lazy val commonSettings = BuildSettings.common ++ Seq(
1010
libraryDependencies ++= Seq(
1111
Dependencies.catsEffect,
1212
Dependencies.logbackClassic % Test,

project/BuildHelper.scala renamed to project/BuildSettings.scala

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import sbt._
33
import scalafix.sbt.ScalafixPlugin.autoImport._
44
import wartremover.WartRemover.autoImport._
55

6-
object BuildHelper {
7-
lazy val settingsCommon = Seq(
6+
object BuildSettings {
7+
lazy val common = Seq(
88
ThisBuild / scalaVersion := "2.12.10",
99
libraryDependencies ++= Seq(
1010
compilerPlugin(Dependencies.kindProjector),
@@ -30,14 +30,6 @@ object BuildHelper {
3030
"-Ywarn-unused", // for scalafix. not present in sbt-tpolecat for 2.13
3131
"-P:silencer:checkUnused"
3232
),
33-
scalacOptions --= {
34-
if (!sys.env.get("CI").contains("true"))
35-
Seq(
36-
"-Xfatal-warnings" // for scala-fix https://scalacenter.github.io/scalafix/docs/rules/RemoveUnused.html
37-
)
38-
else
39-
Seq()
40-
},
4133
Test / publishArtifact := false,
4234
Test / test / wartremoverErrors := (Compile / compile / wartremoverErrors).value filterNot Set(
4335
Wart.MutableDataStructures,

0 commit comments

Comments
 (0)