-
Notifications
You must be signed in to change notification settings - Fork 1
/
.scalafmt.conf
95 lines (73 loc) · 1.94 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
83
84
85
86
87
88
89
90
91
92
93
94
95
version=2.7.5
project.git = true
maxColumn = 120
assumeStandardLibraryStripMargin = true
align.stripMargin = true
continuationIndent.callSite = 2
continuationIndent.defnSite = 2
continuationIndent.ctorSite = 2
docstrings.oneline = "keep"
docstrings.blankFirstLine = keep
continuationIndent.extendSite = 2
continuationIndent.withSiteRelativeToExtends = 2
align.preset = none
align.arrowEnumeratorGenerator = false
align.openParenCallSite = false
align.openParenDefnSite = false
danglingParentheses.defnSite = true
danglingParentheses.callSite = false
// Don't force dangling on open/close parens around control structures (if, while, for) when line breaks.
danglingParentheses.ctrlSite = false
// This approach attempts to preserve line breaks in the input whenever possible.
newlines.source = keep
newlines.topLevelStatementsMinBreaks = 0
newlines.alwaysBeforeMultilineDef = false
newlines.afterCurlyLambda = preserve
//newlines.implicitParamListModifierForce = [after]
newlines.afterCurlyLambda = squash
verticalMultiline.atDefnSite = true
verticalMultiline.excludeDanglingParens = ["class", "trait", "def"]
rewrite.rules = [SortImports, AvoidInfix, RedundantBraces, RedundantParens, PreferCurlyFors]
rewrite.redundantBraces.stringInterpolation = true
rewrite.redundantBraces.generalExpressions = true
rewrite.redundantBraces.methodBodies = true
rewrite.redundantBraces.includeUnitMethods = true
trailingCommas = "never"
importSelectors = noBinPack
spaces.beforeContextBoundColon=Always
optIn.breakChainOnFirstMethodDot = false
rewriteTokens = {
"⇒": "=>"
"→": "->"
"←": "<-"
}
importSelectors = singleLine
rewrite.neverInfix.excludeFilters = [
until
to
by
eq
ne
"should.*"
"contain.*"
"must.*"
in
ignore
be
taggedAs
thrownBy
synchronized
have
when
size
only
noneOf
oneElementOf
noElementsOf
atLeastOneElementOf
atMostOneElementOf
allElementsOf
inOrderElementsOf
theSameElementsAs
]
encoding = "UTF-8"