-
Notifications
You must be signed in to change notification settings - Fork 1
/
.scalafmt.conf
47 lines (40 loc) · 1.02 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
version = "3.7.15"
runner.dialect = scala3
style = defaultWithAlign
maxColumn = 140
includeCurlyBraceInSelectChains = false
danglingParentheses.preset = true
lineEndings = preserve
trailingCommas = multiple
continuationIndent {
callSite = 2
defnSite = 2
}
newlines {
penalizeSingleSelectMultiArgList = false
alwaysBeforeElseAfterCurlyIf = false
}
project {
includePaths = ["glob:**.scala", "glob:**.sbt", "glob:**.sc"]
excludeFilters = [
/out/
/.metals/
/.bloop/
/.bsp/
]
}
binPack {
parentConstructors = true
}
rewrite {
rules = [RedundantParens, SortImports, PreferCurlyFors]
trailingCommas.style = always
}
align {
preset = most
arrowEnumeratorGenerator = true
tokens."+" = ["+=", "++="]
tokens."+" = [{ code = ":=", owner = "NOT_EXISTING" }] # just never align := for outwatch
openParenCallSite = false
multiline = false
}