forked from VirtusLab/scala-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scalafmt.conf
53 lines (47 loc) · 1.06 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
48
49
50
51
52
53
version = "3.2.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 = scala213
rewrite.rules = [
RedundantBraces
RedundantParens
SortModifiers
]
rewrite.redundantBraces {
ifElseExpressions = true
includeUnitMethods = false
stringInterpolation = true
}
rewrite.sortModifiers.order = [
"private", "final", "override", "protected",
"implicit", "sealed", "abstract", "lazy"
]
fileOverride {
"glob:**/scala-3-stable/**" {
runner.dialect = scala3
}
"glob:**/scala-3-unstable/**" {
runner.dialect = scala3
}
"glob:**/sclicheck/**" {
runner.dialect = scala3
}
"glob:**/gifs/**" {
runner.dialect = scala3
}
}
project.excludeFilters = [
".metals"
"examples" # Scala 3 scripts and using directives not supported yet
"out"
"scala-version.scala"
]