-
Notifications
You must be signed in to change notification settings - Fork 3
/
.scalafmt.conf
55 lines (46 loc) · 1.5 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
version = "3.6.1"
runner.dialect = scala3
encoding = "UTF-8"
maxColumn = 120
lineEndings = unix
docstrings.style = Asterisk
docstrings.oneline = fold
align.preset = most
align.multiline = true
align.openParenCallSite = false
align.openParenDefnSite = false
align.tokens = [
{code = "<-"},
{code = "="},
{code = "=>", owner = "Case"},
{code = "%", owner = "Term.ApplyInfix"},
{code = "%%", owner = "Term.ApplyInfix"}
]
align.arrowEnumeratorGenerator = true
align.stripMargin = true
assumeStandardLibraryStripMargin = true
continuationIndent.callSite = 2
continuationIndent.defnSite = 2
continuationIndent.extendSite = 2
continuationIndent.withSiteRelativeToExtends = 2
indentOperator.topLevelOnly = false
rewrite.rules = [RedundantBraces, RedundantParens, SortImports, SortModifiers, PreferCurlyFors]
rewrite.sortModifiers.order = ["override", "private", "protected", "implicit", "final", "sealed", "abstract", "lazy"]
rewrite.redundantBraces.generalExpressions = false
optIn.annotationNewlines = true
newlines.source = keep
newlines.sometimesBeforeColonInMethodReturnType = false
newlines.topLevelStatements = [before]
newlines.alwaysBeforeElseAfterCurlyIf = false
newlines.beforeCurlyLambdaParams = multilineWithCaseOnly
newlines.afterCurlyLambdaParams = never
newlines.implicitParamListModifierPrefer = before
spaces.inImportCurlyBraces = false
danglingParentheses.defnSite = true
danglingParentheses.callSite = true
danglingParentheses.ctrlSite = false
rewriteTokens = {
"⇒": "=>"
"→": "->"
"←": "<-"
}