-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scalafmt.conf
47 lines (40 loc) · 986 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
version = 2.6.3
maxColumn = 120
style = defaultWithAlign
docstrings = ScalaDoc
assumeStandardLibraryStripMargin = true
continuationIndent {
callSite = 2
defnSite = 2
}
align = more
align.tokens.add = [{ code = ":", owner = "Term.Param" }]
align {
arrowEnumeratorGenerator = true
openParenCallSite = true
openParenDefnSite = false
}
newlines {
alwaysBeforeTopLevelStatements = true
alwaysBeforeElseAfterCurlyIf = false
}
danglingParentheses = true
rewrite {
rules = [
RedundantBraces
RedundantParens
SortModifiers
PreferCurlyFors
ExpandImportSelectors
]
sortModifiers.order = [
"override", "private", "protected", "final", "implicit", "sealed", "abstract", "lazy"
]
redundantBraces.stringInterpolation = true
}
includeCurlyBraceInSelectChains = true
optIn.breakChainOnFirstMethodDot = true
verticalMultiline.arityThreshold = 5
verticalMultiline.atDefnSite = true
verticalMultiline.newlineBeforeImplicitKW = false
project.git = true