-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scalafmt.conf
44 lines (38 loc) · 949 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.7.12"
align.preset = more
maxColumn = 120
assumeStandardLibraryStripMargin = true
indent.defnSite = 2
assumeStandardLibraryStripMargin = true
docstrings.style = Asterisk
docstrings.wrapMaxColumn = 80
indentOperator.topLevelOnly = false
align.preset = most
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"
".metals"
".scala-build"
"examples" # Scala 3 scripts and using directives not supported yet
"out"
"scala-version.scala"
]