@@ -4,9 +4,40 @@ lazy val root = project
4
4
.in(file(" ." ))
5
5
.settings(
6
6
name := " scala-notes" ,
7
- version := " 0.1.0-SNAPSHOT" ,
8
-
7
+ version := " 0.1.0" ,
9
8
scalaVersion := scala3Version,
10
9
11
- libraryDependencies += " org.scalameta" %% " munit" % " 0.7.29" % Test
10
+ logLevel := Level .Warn ,
11
+ run / watchLogLevel := Level .Warn ,
12
+ Global / onChangedBuildSource := ReloadOnSourceChanges ,
13
+
14
+ libraryDependencies += " org.scalameta" %% " munit" % " 0.7.29" % Test ,
15
+
16
+ wartremoverErrors ++= Warts .unsafe,
17
+ wartremoverErrors ++= Seq (
18
+ Wart .ArrayEquals , Wart .AnyVal , Wart .Equals , Wart .ExplicitImplicitTypes ,
19
+ Wart .FinalCaseClass , Wart .ImplicitConversion ,
20
+ Wart .JavaConversions , Wart .JavaSerializable , Wart .LeakingSealed ,
21
+ Wart .Nothing , Wart .Option2Iterable , Wart .PublicInference ,
22
+ ),
23
+ wartremoverErrors ++= Seq (
24
+ ContribWart .OldTime , ContribWart .UnsafeInheritance ,
25
+ ContribWart .MissingOverride , ContribWart .NoNeedForMonad ,
26
+ ContribWart .UnintendedLaziness , ContribWart .DiscardedFuture ,
27
+ ),
28
+
29
+ wartremover.WartRemover .dependsOnLocalProjectWarts(customWarts),
30
+ wartremoverErrors ++= Seq (
31
+ Wart .custom(" customWarts.CharPlusAny" ), Wart .custom(" customWarts.CharMinusAny" ),
32
+ Wart .custom(" customWarts.CharTimesAny" ), Wart .custom(" customWarts.CharDividedByAny" ),
33
+ Wart .custom(" customWarts.CharEqualsAny" ),
34
+ ),
35
+
12
36
)
37
+
38
+ lazy val customWarts = project.in(file(" .warts" )).settings(
39
+ scalaVersion := scala3Version,
40
+ libraryDependencies ++= Seq (
41
+ " org.wartremover" % " wartremover" % wartremover.Wart .PluginVersion cross CrossVersion .full
42
+ ),
43
+ )
0 commit comments