-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scalafmt.conf
67 lines (58 loc) · 1.16 KB
/
.scalafmt.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
version = 3.5.9
runner.dialect = scala213
fileOverride {
"glob:**/src-2.12/**" {
runner.dialect = scala212
}
}
maxColumn = 120
project.git = true
project.excludeFilters = []
assumeStandardLibraryStripMargin = true
align {
preset = most
stripMargin = true
openParenCallSite = false
openParenDefnSite = true
openParenTupleSite = true
arrowEnumeratorGenerator = false
ifWhileOpenParen = false
tokens."+" = [
{
code = ":"
owners = [{
parents = [ "Defn\\." ]
}]
},
{
code = "="
owners = [{
parents = [ "Defn\\." ]
}]
},
{
code = "->"
owners = [{
parents = [ "Term\\.ApplyInfix" ]
}]
}
]
}
newlines {
beforeOpenParenDefnSite = unfold
sometimesBeforeColonInMethodReturnType = true
alwaysBeforeElseAfterCurlyIf = true
inInterpolation = avoid
implicitParamListModifierPrefer = before
avoidForSimpleOverflow=[tooLong,punct,slc]
}
includeNoParensInSelectChains = true
optIn {
breakChainOnFirstMethodDot = true
breaksInsideChains = true
}
rewrite {
rules = [SortImports, RedundantBraces]
redundantBraces.maxLines = 1
}
importSelectors = singleLine