-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.scalafmt.conf
44 lines (34 loc) · 1.11 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
version = 3.7.17
runner.dialect = scala3
preset = default
maxColumn = 120
align.tokens."+" = [
{ code = "extends", owner = "(Template|EnumCase|Enum)" }
{ code = "//", owner = ".*" }
{ code = "{", owner = "Template" }
{ code = "}", owner = "Template" }
{ code = "->", owner = "Term.ApplyInfix" }
{ code = "<-", owner = "Enumerator.Generator" }
{ code = "%", owner = "Term.ApplyInfix"},
{ code = "%%", owner = "Term.ApplyInfix"}
{ code = "=", owner = "(Enumerator.Val|Defn.(Va(l|r)|Def|Type|Given))" }
]
align.openParenDefnSite = true
align.openParenCallSite = true
docstrings.style = Asterisk
danglingParentheses.preset = false
includeCurlyBraceInSelectChains = false
newlines.avoidAfterYield = false
newlines.beforeCurlyLambdaParams = multilineWithCaseOnly
rewrite.rules = [SortImports, RedundantBraces, RedundantParens, PreferCurlyFors]
project.git = true
lineEndings = preserve
spaces.beforeContextBoundColon = true
fileOverride {
"glob:**/project/*.scala" {
runner.dialect = scala212source3
}
"glob:**/*.sbt" {
runner.dialect = scala212source3
}
}