-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.scalafmt.conf
69 lines (56 loc) · 1.55 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
version = 3.8.1
maxColumn = 80
runner.dialect = scala213source3
preset = default
indent.main = 2
indent.defnSite = 2
indent.caseSite = 2
indent.extendSite = 2
indent.withSiteRelativeToExtends = 2
indent.extraBeforeOpenParenDefnSite = 2
indentOperator.exemptScope = all
align.preset = none
newlines.source = unfold
newlines.topLevelStatementBlankLines = [
{
blanks = 1
}
]
newlines.beforeTemplateBodyIfBreakInParentCtors = true
newlines.beforeMultiline = fold
newlines.beforeCurlyLambdaParams = multilineWithCaseOnly
newlines.selectChains = unfold
newlines.afterCurlyLambdaParams = squash
newlines.implicitParamListModifierForce = [after]
newlines.avoidForSimpleOverflow = [punct]
newlines.avoidInResultType = true
newlines.sometimesBeforeColonInMethodReturnType = false
newlines.inInterpolation = oneline
danglingParentheses.tupleSite = true
runner.optimizer.forceConfigStyleMinSpan = 50
runner.optimizer.forceConfigStyleMinArgCount = 1
rewrite.rules = [
AvoidInfix,
RedundantBraces,
RedundantParens,
SortModifiers,
PreferCurlyFors,
Imports
]
rewrite.redundantBraces.methodBodies = true
rewrite.redundantBraces.includeUnitMethods = false
rewrite.redundantBraces.ifElseExpressions = true
rewrite.redundantBraces.stringInterpolation = true
rewrite.imports.expand = true
rewrite.imports.sort = scalastyle
docstrings.style = Asterisk
docstrings.removeEmpty = true
docstrings.oneline = unfold
docstrings.blankFirstLine = true
docstrings.forceBlankLineBefore = true
xmlLiterals.assumeFormatted = true
rewriteTokens = {
"⇒": "=>"
"→": "->"
"←": "<-"
}