forked from improving-app/riddl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scalafmt.conf
78 lines (60 loc) · 1.39 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
73
74
75
76
77
78
version=3.2.0
maxColumn = 80
docstrings.style = SpaceAsterisk
preset = default
indent.defnSite = 2
runner.dialect = scala213source3
// If true, the margin character | is aligned with the opening
// triple quote in interpolated and raw string literals.
assumeStandardLibraryStripMargin = true
includeCurlyBraceInSelectChains = true
includeNoParensInSelectChains = true
danglingParentheses.preset = true
optIn {
breakChainOnFirstMethodDot = true
annotationNewlines = true
configStyleArguments = true
}
continuationIndent {
callSite = 2
defnSite = 2
ctorSite = 2
}
// Set to `none` setting to minimize git diffs/conflicts from
// renamings and other refactorings.
align = none
align {
stripMargin = true
tokens = [caseArrow]
arrowEnumeratorGenerator = false
openParenCallSite = false
openParenDefnSite = false
}
newlines {
source = fold
alwaysBeforeElseAfterCurlyIf = false
}
rewrite {
rules = [ExpandImportSelectors, PreferCurlyFors]
redundantBraces.stringInterpolation = true
}
verticalMultiline {
arityThreshold = 100
newlineAfterOpenParen = false
atDefnSite = true
newlineAfterOpenParen = false
}
// Configure which source files should be formatted in this project.
project {
git = true
includeFilters = [
".*\\.scala$"
".*\\.sbt$"
]
excludeFilters = []
}
// Miscellaneous
binPack.literalArgumentLists = false
spaces {
inImportCurlyBraces = true
}