-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scalafmt.conf
42 lines (42 loc) · 1.07 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
# **Note** that config order in this file is important since what comes afterwards takes precedence
version="2.7.5"
project.git = true
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
}
docstrings = ScalaDoc #Scalafmt default
includeCurlyBraceInSelectChains = true #Scalafmt default
maxColumn = 160
newlines.penalizeSingleSelectMultiArgList = false #Scalafmt default
rewrite {
rules = [
redundantparens,
sortimports,
redundantbraces,
prefercurlyfors
]
redundantBraces {
maxLines = 3
stringInterpolation = true
}
}
rewriteTokens {
"⇒": "=>"
"→": "->"
"←": "<-"
}
onTestFailure = "To fix this, run 'sbt scalafmtAll scalafmtSbt' from the project root directory"