forked from Alkaar/resy-booking-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.scalafix.conf
72 lines (61 loc) · 1.84 KB
/
.scalafix.conf
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
rules = [
Disable
NoInfer
DisableSyntax # Reports an error for disabled features such as var or XML literals.
RemoveUnused
LeakingImplicitClassVal # Adds 'private' to val parameters of implicit value classes
NoValInForComprehension # Removes deprecated val inside for-comprehension binders
ProcedureSyntax # Replaces deprecated procedure syntax with explicit ': Unit ='
NoAutoTupling
RewriteDeprecatedNames # Scalatest 3.1 migration
# Mark case classes as final
# https://nrinaudo.github.io/scala-best-practices/tricky_behaviours/final_case_classes.html
MissingFinal
]
# https://nrinaudo.github.io/scala-best-practices/unsafe/
DisableSyntax {
noXml = true
noVars = true
noNulls = true
noReturns = true
noFinalize = true
noWhileLoops = true
noAsInstanceOf = true
noIsInstanceOf = true
# motivation https://github.com/sbt/zinc/issues/227
noFinalVal = true
noValPatterns = false
noUniversalEquality = false
noSemicolons = true
noImplicitObject = true
# https://nrinaudo.github.io/scala-best-practices/oop/abstract_fields_as_defs.html
# https://docs.scala-lang.org/tutorials/FAQ/initialization-order.html
noValInAbstract = true
}
Disable.symbols = [
# https://nrinaudo.github.io/scala-best-practices/adts/enumerations_as_adt.html
"scala.Enumeration"
# https://nrinaudo.github.io/scala-best-practices/partial_functions/
"scala.util.Either.LeftProjection.get"
"scala.util.Either.RightProjection.get"
# Wartremover.OptionPartial
"scala.Option.get"
"scala.Some.get"
"scala.None.get"
# Wartremover.TryPartial
"scala.util.Try.get"
"scala.util.Failure.get"
"scala.util.Success.get"
]
Disable.ifSynthetic = [
"scala.Predef.any2stringadd"
"scala.Any"
"scala.AnyVal"
]
NoInfer.disabledTypes = [
"scala.Any"
"scala.AnyVal"
"java.io.Serializable"
"scala.Serializable"
"scala.Product"
]