generated from ldss-project/scala3-project-template
/
.wartremover.conf
19 lines (19 loc) · 1.27 KB
/
.wartremover.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
warts {
Any = Warning # Forbid: val x: Any = List(1, true, "three")
AsInstanceOf = Warning # Forbid: x.asInstanceOf[String]
DefaultArguments = Warning # Forbid: def x(y: Int = 0) = y
EitherProjectionPartial = Warning # Forbid: not using Option with projections
IsInstanceOf = Warning # Forbid: x.isInstanceOf[String]
IterableOps = Warning # Forbid: not using Option with iterables
NonUnitStatements = Warning # Forbid: def x(): Unit = 100
Null = Warning # Forbid: val x = null
OptionPartial = Warning # Forbid: using Option.get
Product = Warning # Forbid: val any = List((1, 2, 3), (1, 2)) (:Product)
Return = Warning # Forbid: def x(): Int = return 5
Serializable = Warning # Forbid: val any = List((1, 2, 3), (1, 2)) (:Serializable)
StringPlusAny = Warning # Forbid: "foo"+{} or {}+"bar"
Throw = Warning # Forbid: throwing exceptions
TripleQuestionMark = Warning # Forbid: throwing the "???" exception
TryPartial = Warning # Forbid: not using getOrElse with try partial
Var = Warning # Forbid: var x: Int = 10
}