-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.scalafmt.conf
64 lines (57 loc) · 1.42 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
# https://scalameta.org/scalafmt/docs/configuration.html
version = "2.0.0-RC6"
maxColumn = 110
# https://scalameta.org/scalafmt/docs/configuration.html#align-most
align = most
# https://scalameta.org/scalafmt/docs/configuration.html#aligntokens
align.tokens = [
{
code = "="
owner = "(Enumerator.Val|Defn.(Va(l|r)|Def|Type))"
},
{
code = "<-"
owner = "Enumerator.Generator"
},
{
code = "=>"
owner = Case
},
{
code = "{"
owner = Template
},
{
code = "}"
owner = Template
},
{
code = extends
owner = "Defn.(Class|Trait|Object)"
},
{
code = "%"
owner = "Term.ApplyInfix"
},
{
code = "%%"
owner = "Term.ApplyInfix"
},
":=",
"+=",
"++="
]
# https://scalameta.org/scalafmt/docs/configuration.html#alignopenparencallsite
align.openParenCallSite = false
# https://scalameta.org/scalafmt/docs/configuration.html#alignopenparendefnsite
align.openParenDefnSite = false
# https://scalameta.org/scalafmt/docs/configuration.html#continuationindentdefnsite
continuationIndent.defnSite = 2
# https://scalameta.org/scalafmt/docs/configuration.html#other
newlines.neverInResultType = true
newlines.sometimesBeforeColonInMethodReturnType = false
newlines.penalizeSingleSelectMultiArgList = false
newlines.afterImplicitKWInVerticalMultiline = true
newlines.beforeImplicitKWInVerticalMultiline = true
spaces.inImportCurlyBraces = true
spaces.inByNameTypes = false