-
Notifications
You must be signed in to change notification settings - Fork 1
/
.scalafmt.conf
44 lines (44 loc) · 1.03 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
version = "3.7.3"
runner.dialect = scala3
maxColumn = 120
align.preset = more
lineEndings = preserve
align.stripMargin = false
docstrings.style = AsteriskSpace
docstrings.oneline = keep
continuationIndent.defnSite = 2
danglingParentheses.preset = true
spaces {
inImportCurlyBraces = true
}
indentOperator.exemptScope = aloneArgOrBody
includeCurlyBraceInSelectChains = false
align.openParenDefnSite = false
optIn.annotationNewlines = true
rewriteTokens = {
"⇒": "=>"
"→": "->"
"←": "<-"
}
rewrite.rules = [RedundantBraces, Imports]
rewrite.imports.sort = scalastyle
rewrite.imports.groups = [
["java\\..*", "javax\\..*"],
["scala\\..*", "scalapb\\..*"]
["net\\.bytebuddy\\..*"],
["io\\.grpc\\..*"],
["caliban\\..*"],
["zio\\..*"],
["org\\..*"],
["com\\..*"],
]
rewrite.imports.contiguousGroups = no
newlines.topLevelStatementBlankLines = [
{
blanks {before = 1}
}
]
rewrite.scala3.convertToNewSyntax = true
importSelectors = singleLine
optIn.breakChainOnFirstMethodDot = false
includeNoParensInSelectChains = false