-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.scalafmt.conf
121 lines (105 loc) · 2.41 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
version = "3.6.1"
style = default
runner.dialect = "scala212"
project.excludeFilters = [
".idea/.*"
"target/.*"
"project/target/.*"
"dist/.*"
".git/.*"
]
maxColumn = 100
continuationIndent {
callSite = 2
defnSite = 2
}
assumeStandardLibraryStripMargin = false
docstrings {
style = Asterisk
removeEmpty = false
oneline = fold
}
align = none
align {
openParenCallSite = false
openParenDefnSite = false
arrowEnumeratorGenerator = false
tokens = [
{code = "=>", owner = Case}
{code = "%", owner = "Term.ApplyInfix"}
{code = "%%", owner = "Term.ApplyInfix"}
// {code = "=", owner = "(Enumerator.Val|Defn.(Va(l|r)|Def|Type))"}
{code = "=", owner = Infix}
{code = ":=", owner = Infix}
{code = "<-", owner = "Enumerator.Generator"}
{code = "->", owner = "Term.ApplyInfix"}
":"
]
}
trailingCommas = never
spaces {
afterKeywordBeforeParen = true
}
includeCurlyBraceInSelectChains = true
danglingParentheses.preset = true
verticalMultiline {
atDefnSite = true
arityThreshold = 2
newlineAfterOpenParen = true
newlineBeforeImplicitKW = true
newlineAfterImplicitKW = false
excludeDanglingParens = []
}
newlines {
alwaysBeforeMultilineDef = true
sometimesBeforeColonInMethodReturnType = true
alwaysBeforeElseAfterCurlyIf = false
alwaysBeforeCurlyBraceLambdaParams = false
penalizeSingleSelectMultiArgList = false
afterCurlyLambda = never
beforeCurlyLambdaParams = multilineWithCaseOnly
afterCurlyLambdaParams = squash
afterInfix = many
selectChains = unfold
avoidForSimpleOverflow = [tooLong, slc]
}
optIn {
breakChainOnFirstMethodDot = true
configStyleArguments = true
breaksInsideChains = true
annotationNewlines = true
}
binPack {
literalsMinArgCount = 1
parentConstructors = true
literalArgumentLists = true
}
runner.optimizer {
forceConfigStyleOnOffset = 100
forceConfigStyleMinArgCount = 2
}
rewrite {
rules = [
RedundantBraces
RedundantParens
SortModifiers
PreferCurlyFors
Imports
]
redundantBraces {
stringInterpolation = true
generalExpressions = true
ifElseExpressions = true
methodBodies = true
includeUnitMethods = true
parensForOneLineApply = true
maxLines = 20
}
sortModifiers.order = [
"implicit", "lazy", "final", "sealed",
"override", "private", "protected", "abstract"
]
imports.expand = false
imports.sort = scalastyle
trailingCommas.style = multiple
}