-
Notifications
You must be signed in to change notification settings - Fork 3
/
.scalafmt.conf
43 lines (43 loc) · 1.06 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
# **Note** that config order in this file is important since what comes afterwards takes precedence
version = 3.7.15
project.git = true
runner.dialect = scala3
align = true
align.arrowEnumeratorGenerator = true
align.tokens = [
{code = "=>", owner = "Case"},
{code = "<-", owner = "for"},
"%",
"%%"
]
align.openParenDefnSite = false #Scalafmt default
align.openParenCallSite = false
binPack.parentConstructors = false #Scalafmt default
continuationIndent.callSite = 2 #Scalafmt default
continuationIndent.defnSite = 2
danglingParentheses {
callSite = true
ctrlSite = true
defnSite = true
}
includeCurlyBraceInSelectChains = true #Scalafmt default
maxColumn = 160
newlines.penalizeSingleSelectMultiArgList = false #Scalafmt default
rewrite {
rules = [
RedundantBraces,
RedundantParens,
PreferCurlyFors,
SortImports
]
redundantBraces {
maxLines = 3
stringInterpolation = true
}
}
rewriteTokens {
"⇒": "=>"
"→": "->"
"←": "<-"
}
onTestFailure = "To fix this, run 'sbt scalafmtAll scalafmtSbt' from the project root directory"