-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.scalafmt.conf
106 lines (90 loc) · 2.07 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
version = "1.6.0-RC4"
style = default
project.excludeFilters = [
".idea/.*"
"target/.*"
"project/target/.*"
"dist/.*"
".git/.*"
]
maxColumn = 100
continuationIndent {
callSite = 2
defnSite = 2
}
assumeStandardLibraryStripMargin = false
docstrings = "ScalaDoc"
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 = true
verticalMultiline {
atDefnSite = true
arityThreshold = 2
newlineAfterOpenParen = true
newlineBeforeImplicitKW = true
newlineAfterImplicitKW = false
excludeDanglingParens = []
}
newlines {
alwaysBeforeMultilineDef = true
alwaysBeforeTopLevelStatements = false
sometimesBeforeColonInMethodReturnType = true
alwaysBeforeElseAfterCurlyIf = false
alwaysBeforeCurlyBraceLambdaParams = false
penalizeSingleSelectMultiArgList = false
afterCurlyLambda = never
beforeImplicitKWInVerticalMultiline = false
}
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
}
sortModifiers.order = [
"implicit", "lazy", "final", "sealed",
"override", "private", "protected", "abstract"
]
}