-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scalafmt.conf
82 lines (70 loc) · 1.54 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
style = IntelliJ
version = 2.7.5
maxColumn = 120
assumeStandardLibraryStripMargin = true
align.preset = more
align.stripMargin = false
align.tokens = [
{code = "=>", owner = "Case"},
{code = "<-", owner = "Enumerator.Generator"},
{code = "extends", owner = "Defn.(Class|Trait|Object)"},
{code = "%", owner = "Term.ApplyInfix"},
{code = "%%", owner = "Term.ApplyInfix"},
{code = "->", owner = "Term.ApplyInfix"}
]
verticalAlignMultilineOperators = true
xmlLiterals.assumeFormatted = true
includeCurlyBraceInSelectChains = true
includeNoParensInSelectChains = true
continuationIndent {
callSite = 2
defnSite = 2
extendSite = 2
}
spaces {
beforeContextBoundColon = Always
}
newlines {
sometimesBeforeColonInMethodReturnType = false
alwaysBeforeElseAfterCurlyIf = false
penalizeSingleSelectMultiArgList = true
beforeMultiline = fold
beforeMultilineDef = keep
}
binPack {
parentConstructors = false
literalArgumentLists = true
}
optIn {
annotationNewlines = true
breakChainOnFirstMethodDot = true
breaksInsideChains = true
forceBlankLineBeforeDocstring = true
configStyleArguments = true
}
rewrite {
rules = [
RedundantBraces,
RedundantParens,
PreferCurlyFors,
SortModifiers,
SortImports
]
redundantBraces {
stringInterpolation = true
methodBodies = true
includeUnitMethods = false
parensForOneLineApply = true
maxLines = 2
}
sortModifiers.order = [
"abstract",
"override",
"private",
"protected",
"final",
"sealed",
"implicit",
"lazy"
]
}