-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scalafmt.conf
44 lines (33 loc) · 862 Bytes
/
.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.8.3"
runner.dialect = scala213source3
fileOverride {
"glob:**.sbt" {
runner.dialect = "sbt1"
}
}
continuationIndent {
callSite = 2
defnSite = 2
}
align {
stripMargin = true
arrowEnumeratorGenerator = false
openParenCallSite = false
openParenDefnSite = false
// do not inherit defaults since we don't want case clauses to align
tokens = [
// sbt specific
{code = "%", owner = "Term.ApplyInfix"}
{code = "%%", owner = "Term.ApplyInfix"}
{code = "%%%", owner = "Term.ApplyInfix"}
]
}
newlines {
beforeCurlyLambdaParams = never
afterCurlyLambdaParams = never
alwaysBeforeElseAfterCurlyIf = false
// Attempt to preserve line breaks in the input whenever possible.
source = keep
}
// Use trailing commas everywhere a newline is followed by a right parens (')' or '}')
trailingCommas = always