-
Notifications
You must be signed in to change notification settings - Fork 1
/
.scalafmt.conf
122 lines (101 loc) · 2.37 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
122
version = "3.7.1"
runner.dialect = scala3
rewrite.scala3 {
convertToNewSyntax = true
removeOptionalBraces = false
insertEndMarkerMinLines = 6
removeEndMarkerMaxLines = 0
insertEndMarkerMinLines = 0
countEndMarkerLines = all
}
style = default
project.excludeFilters = [
".idea/.*"
"target/.*"
"project/target/.*"
"dist/.*"
".git/.*"
]
maxColumn = 200
continuationIndent {
callSite = 2
defnSite = 2
}
assumeStandardLibraryStripMargin = false
docstrings.style = SpaceAsterisk
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
topLevelBodyIfMinStatements = [before,after]
topLevelBodyMinStatements = 1
avoidForSimpleOverflow=[slc, tooLong]
sometimesBeforeColonInMethodReturnType = true
alwaysBeforeElseAfterCurlyIf = false
//alwaysBeforeCurlyBraceLambdaParams = false
penalizeSingleSelectMultiArgList = false
afterCurlyLambda = never
}
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
AsciiSortImports
]
redundantBraces {
stringInterpolation = true
methodBodies = false
includeUnitMethods = false
maxLines = 1
}
sortModifiers.order = [
"implicit", "lazy", "final", "sealed",
"override", "private", "protected", "abstract"
]
}