forked from scanamo/scanamo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scalafmt.conf
43 lines (36 loc) · 866 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
version= "3.8.1"
align = most
align {
openParenCallSite = false
openParenDefnSite = true
tokens."+" = [
{code = "%", owner = "Term.ApplyInfix"},
{code = "%%", owner = "Term.ApplyInfix"}
]
}
runner.dialect = scala213
fileOverride {
"glob:**/src/*/scala-3/**" {
runner.dialect = scala3
}
"glob:**/scanamo/src/*/scala/**" {
runner.dialect = scala3
}
}
assumeStandardLibraryStripMargin = true
continuationIndent.defnSite = 2
danglingParentheses.defnSite = true
danglingParentheses.callSite = true
docstrings.style = SpaceAsterisk
includeCurlyBraceInSelectChains = false
lineEndings = preserve
maxColumn = 120
optIn.annotationNewlines = true
project {
git = true
includePaths = [
"glob:**.scala",
]
}
rewrite.rules = [SortImports, SortModifiers, RedundantBraces, RedundantParens]
spaces.inImportCurlyBraces = true