-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scalafmt.conf
58 lines (53 loc) · 1.6 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
version = "2.3.2"
align.openParenCallSite = false
align.tokens = ["%", "%%", "<-", {code = "=>", owner = "Case"}, {code = "=", owner = "(Enumerator.Val|Defn.(Va(l|r)|Def|Type))"}, ]
align.arrowEnumeratorGenerator = true
binPack.parentConstructors = false
danglingParentheses = true
maxColumn = 120
newlines.afterImplicitKWInVerticalMultiline = true
newlines.beforeImplicitKWInVerticalMultiline = true
project.excludeFilters = [ .scalafmt.conf ]
project.git = true
rewrite.rules = [PreferCurlyFors, RedundantBraces, RedundantParens, SortImports]
spaces.inImportCurlyBraces = true
style = defaultWithAlign
unindentTopLevelOperators = true
lineEndings = preserve
rewrite {
rules = [
PreferCurlyFors,
RedundantBraces,
RedundantParens,
SortImports,
SortModifiers,
]
sortModifiers {
order = [
"final",
"sealed",
"abstract",
"override",
"implicit",
"private",
"protected",
"lazy"
]
}
}
rewriteTokens {
"⇒" = "=>"
"→" = "->"
"←" = "<-"
}
spaces {
inImportCurlyBraces = true
}
verticalMultiline {
arityThreshold = 3
atDefnSite = true
excludeDanglingParens = []
newlineAfterImplicitKW = true
newlineAfterOpenParen = true
newlineBeforeImplicitKW = false
}