forked from scalacenter/bloop
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.scalafmt.conf
50 lines (42 loc) · 1006 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
45
46
47
48
49
50
version = "3.8.1"
align.preset = more
maxColumn = 100
assumeStandardLibraryStripMargin = true
indent.defnSite = 2
indentOperator.topLevelOnly = false
align.preset = more
align.openParenCallSite = false
newlines.source = keep
newlines.beforeMultiline = keep
newlines.afterCurlyLambdaParams = keep
newlines.alwaysBeforeElseAfterCurlyIf = true
runner.dialect = scala3
rewrite.rules = [
RedundantBraces
RedundantParens
SortModifiers
]
rewrite.redundantBraces {
ifElseExpressions = true
includeUnitMethods = false
stringInterpolation = true
}
rewrite.sortModifiers.order = [
"private", "final", "override", "protected",
"implicit", "sealed", "abstract", "lazy"
]
project.excludeFilters = [
# ".bloop" # makes scalafmt 3.5.9 complain with 'Error$NoMatchingFiles$: No files formatted/tested.'
".metals"
"out"
"zinc/"
"bsp/"
"benchmark-bridge/"
# these have their own .scalafmt.conf
"backend/"
"benchmarks/"
"bridges/"
"buildpress-config/"
"frontend/"
"shared/"
]