-
Notifications
You must be signed in to change notification settings - Fork 1
/
.scalafmt.conf
50 lines (38 loc) · 1.03 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
style = IntelliJ
version = "2.7.5"
maxColumn = 120
continuationIndent {
callSite = 2
defnSite = 2
extendSite = 2
}
align = none
align.openParenDefnSite = false
align.openParenCallSite = false
align.tokens = [
{code = "=>", owner = "Case"},
{code = "<-", owner = "Enumerator.Generator"},
{code = "=", owner = "Enumerator.Val"},
{code = "extends", owner = "Defn.(Class|Trait|Object)"},
{code = "%", owner = "Term.ApplyInfix"},
{code = "%%", owner = "Term.ApplyInfix"},
{code = "->", owner = "Term.ApplyInfix"}
]
newlines {
sometimesBeforeColonInMethodReturnType = false
alwaysBeforeElseAfterCurlyIf = false
penalizeSingleSelectMultiArgList = true
}
binPack {
parentConstructors = false
literalArgumentLists = true
}
includeCurlyBraceInSelectChains = true
spaces {
beforeContextBoundColon = true
}
rewrite {
rules = [RedundantBraces, SortModifiers]
redundantBraces.stringInterpolation = true
sortModifiers.order = ["abstract", "override", "private", "protected", "final", "sealed", "implicit", "lazy"]
}