-
Notifications
You must be signed in to change notification settings - Fork 2
/
.scalafmt.conf
67 lines (58 loc) · 1.3 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.7.5
runner.dialect = scala3
//align.preset=more
align.arrowEnumeratorGenerator=true
align.tokens = [
{
code = "%"
owners = [{
regex = "Term.ApplyInfix"
}]
}, {
code = "%%"
owners = [{
regex = "Term.ApplyInfix"
}]
// }, {
// code = ":="
// owners = [{
// regex = "Term.ApplyInfix",
// }]
}, {
code = "->"
owners = [{
regex = "Term.ApplyInfix",
}]
}, {
code = "="
owners = [{
regex = "(Enumerator.Val|Defn.(Va(l|r)|GivenAlias|Def|Type))"
}]
}, {
code = "<-"
owners = [{
regex = "Enumerator.Generator"
}]
},
]
maxColumn=120
assumeStandardLibraryStripMargin=false
continuationIndent.callSite=2
continuationIndent.defnSite=2
align.stripMargin=true
align.multiline=true
align.openParenCallSite=false
align.openParenDefnSite=false
includeCurlyBraceInSelectChains=true
includeNoParensInSelectChains=true
spaces.beforeContextBoundColon=Never
//newlines.beforeMultiline=unfold
newlines.beforeMultilineDef=keep
newlines.alwaysBeforeElseAfterCurlyIf=false
newlines.beforeCurlyLambdaParams=multilineWithCaseOnly
newlines.afterCurlyLambdaParams=never
newlines.implicitParamListModifierPrefer = before
trailingCommas=keep
docstrings.style = SpaceAsterisk
docstrings.oneline = keep
docstrings.wrap = false