-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.scalafmt.conf
81 lines (65 loc) · 1.78 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
version = 3.8.6
maxColumn = 100
assumeStandardLibraryStripMargin = true
runner.dialect = scala213source3
indent.defnSite = 2
indent.caseSite = 2
indent.withSiteRelativeToExtends = 2
indent.commaSiteRelativeToExtends = 4
indent.extraBeforeOpenParenDefnSite = 2
indentOperator.exemptScope = all
align.preset = some
align.tokens = [
{code = "%", owner = "Term.ApplyInfix"},
{code = "%%", owner = "Term.ApplyInfix"},
{code = "%%%", owner = "Term.ApplyInfix"},
{code = "=>", owner = "Case"}
]
align.openParenTupleSite = true
newlines.source = unfold
newlines.topLevelStatementBlankLines = [
{
blanks = 1
}
]
newlines.beforeTemplateBodyIfBreakInParentCtors = true
newlines.beforeMultiline = fold
newlines.afterCurlyLambdaParams = squash
newlines.implicitParamListModifierForce = [after]
newlines.avoidForSimpleOverflow = [punct]
newlines.avoidInResultType = true
newlines.neverBeforeJsNative = true
newlines.sometimesBeforeColonInMethodReturnType = false
newlines.inInterpolation = oneline
danglingParentheses.tupleSite = true
runner.optimizer.forceConfigStyleOnOffset = 100
rewrite.rules = [
AvoidInfix,
RedundantBraces,
RedundantParens,
SortModifiers,
PreferCurlyFors
]
rewrite.neverInfix.excludeFilters."+" = [
# better for play-framework
and, andKeep, andThen,
# For scalatest
in, should, shouldBe, when, must, mustEqual, mustBe, "must_===", like
]
rewrite.redundantBraces.ifElseExpressions = true
rewrite.redundantBraces.stringInterpolation = true
verticalMultiline.newlineAfterOpenParen = true
spaces.neverAroundInfixTypes = ["##"]
xmlLiterals.assumeFormatted = true
rewriteTokens = {
"⇒": "=>"
"→": "->"
"←": "<-"
}
project.includePaths."+" = ["glob:**.md"]
fileOverride {
"glob:**/project/Dependencies.scala" {
maxColumn = 150
align.preset = more
}
}