-
Notifications
You must be signed in to change notification settings - Fork 10
/
.scalafmt.conf
50 lines (43 loc) · 977 Bytes
/
.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
version = 3.8.3
runner.dialect = scala213
maxColumn = 120
style = defaultWithAlign
assumeStandardLibraryStripMargin = true
fileOverride {
"glob:**/*/src/main/scala-3/**" {
runner.dialect = scala3
}
"glob:**/*/src/test/scala-3/**" {
runner.dialect = scala3
}
}
continuationIndent {
callSite = 2
defnSite = 2
}
align = more
align.tokens."+" = [{code = ":", owner = "Term.Param"}]
align {
arrowEnumeratorGenerator = true
openParenCallSite = true
openParenDefnSite = false
}
newlines {
alwaysBeforeElseAfterCurlyIf = false
}
rewrite {
rules = [
RedundantParens
SortModifiers
PreferCurlyFors
]
sortModifiers.order = [
"override", "private", "protected", "final", "implicit", "sealed", "abstract", "lazy"
]
redundantBraces.stringInterpolation = true
}
includeCurlyBraceInSelectChains = true
optIn.breakChainOnFirstMethodDot = true
verticalMultiline.arityThreshold = 5
verticalMultiline.atDefnSite = true
project.git = true