-
Notifications
You must be signed in to change notification settings - Fork 1
/
.scalafmt.conf
72 lines (56 loc) · 1.47 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
version = "3.8.3"
runner.dialect = scala213source3
fileOverride {
"glob:**/scala-3/**" {
runner.dialect = scala3
}
}
maxColumn = 120
danglingParentheses.preset = false
align {
arrowEnumeratorGenerator = true
ifWhileOpenParen = false
openParenCallSite = true
openParenDefnSite = true
tokens = [
{ code = "=", owner = "(Enumerator.Val|Term.Assign|Defn.(Va(l|r)|Def|Type))" }
{ code = "<-", owner = "Enumerator.Generator" }
{ code = "=>", owner = "Case" }
{ code = "->", owner = "Term.ApplyInfix" }
{ code = "//", owner = ".*" }
{ code = "{", owner = "Template" }
{ code = "}", owner = "Template" }
{ code = "%", owner = "Term.ApplyInfix" }
{ code = "%%", owner = "Term.ApplyInfix" }
{ code = "%%%", owner = "Term.ApplyInfix" }
{ code = "extends", owner = "Defn.(Class|Trait|Object)" }
]
tokenCategory = {
"Equals": "Assign"
"LeftArrow": "Assign"
}
}
continuationIndent {
defnSite = 2
extendSite = 2
callSite = 2
}
newlines {
penalizeSingleSelectMultiArgList = false
sometimesBeforeColonInMethodReturnType = false
avoidAfterYield = false
alwaysBeforeMultilineDef = false
afterCurlyLambda = preserve
}
optIn.annotationNewlines = false
rewrite {
rules = [SortImports, SortModifiers, RedundantBraces]
redundantBraces.maxLines = 1
}
project {
git = true
includeFilters = [
".*\\.scala$"
".*\\.sbt$"
]
}