This repository has been archived by the owner on Jul 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.scalafmt.conf
69 lines (55 loc) · 1.6 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
version = 3.0.8
style = default
fileOverride {
"glob:**/scala-3*/**" {
runner.dialect = scala3
}
}
maxColumn = 120
align = most
align.openParenCallSite = false
align.openParenDefnSite = false
align.multiline = true
align.tokens.add = [
{code = "<-", owner = "Enumerator.Generator"}
//Everything before the Term.Assign was the default regex. To find the
//default value, look through the code here:
//https://github.com/scalameta/scalafmt/blob/master/scalafmt-core/shared/src/main/scala/org/scalafmt/config/Align.scala
{code = "=", owner = "(Enumerator.Generator|Val|Defn.(Va(l|r)|Def|Type))|Term.Assign"}
//used to align comments
"//"
//used for aligning type definition
":"
//used when creating tuples
{code = "->", owner = "Term.ApplyInfix"},
//sbt specific
{code = "%", owner = "Term.ApplyInfix"},
{code = "%%", owner = "Term.ApplyInfix"}
{code = "%%%", owner = "Term.ApplyInfix"}
{code = ":=", owner = "Term.ApplyInfix"}
{code = "withSources", owner = "Term.ApplyInfix"}
"extends"
]
continuationIndent {
callSite = 2
defnSite = 2
ctorSite = 2
extendSite = 2
withSiteRelativeToExtends = 0
}
verticalMultiline.atDefnSite = false
verticalMultiline.newlineAfterOpenParen = true
verticalMultiline.arityThreshold = 3
newlines {
alwaysBeforeTopLevelStatements = true
sometimesBeforeColonInMethodReturnType = true
penalizeSingleSelectMultiArgList = false
alwaysBeforeElseAfterCurlyIf = true
neverInResultType = false
alwaysBeforeMultilineDef = false
implicitParamListModifierForce = []
afterCurlyLambda = squash
}
spaces {
afterKeywordBeforeParen = true
}