This repository has been archived by the owner on Sep 11, 2023. It is now read-only.
forked from datenlord/open-rdma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.scalafix.conf
79 lines (71 loc) · 1.69 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
73
74
75
76
77
78
79
rules = [
DisableSyntax
LeakingImplicitClassVal
NoValInForComprehension
ProcedureSyntax
// ExplicitResultTypes
// NoAutoTupling
// OrganizeImports
// RemoveUnused
]
Disable {
ifSynthetic = [
"scala/Option.option2Iterable"
"scala/Predef.any2stringadd"
]
}
DisableSyntax {
noAsInstanceOf = true
noContravariantTypes = true
noCovariantTypes = true
noDefaultArgs = true
noFinalVal = true
noFinalize = true
// noImplicitConversion = true
noImplicitObject = true // https://stackoverflow.com/questions/20380800/scala-implicits-resolution-mechanism-is-declaration-order-dependent#comment31809401_20381535
noIsInstanceOf = true
noNulls = true
noReturns = true
noSemicolons = true
noTabs = true
noThrows = true
// noUniversalEquality = true // == and != are unsafe since they allow comparing two unrelated types
// noValInAbstract = true
noValPatterns = true
noVars = true
noWhileLoops = true
noXml = true
regex = [
{
id = offensive
pattern = "[Pp]imp"
message = "Please consider a less offensive word than ${0} such as Extension"
}
"Await\\.result"
]
regex = [
{
id = autoResize
pattern = "resized"
message = "Do not use auto resize"
}
"Await\\.result"
]
}
ExplicitResultTypes {
unsafeShortenNames = true
fatalWarnings = true
# these apply to non-implicits
memberKind = [Def, Val]
memberVisibility = [Public, Protected]
# turn to the max...
skipSimpleDefinitions = false
skipLocalImplicits = false
}
OrganizeImports {
# Allign with IntelliJ IDEA so that they don't fight each other
groupedImports = Merge
}
RemoveUnused {
imports = false // handled by OrganizeImports
}