-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.scalafmt.conf
28 lines (22 loc) · 859 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
version = 3.7.0
maxColumn = 120
runner.dialect = "scala213"
align.tokens."+" = [
{ code = "extends", owner = "Defn.(Class|Trait|Object)" }
{ 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))" }
]
align.openParenDefnSite = true
align.openParenCallSite = true
danglingParentheses.preset = false
includeCurlyBraceInSelectChains = false
newlines.avoidAfterYield = false
rewrite.rules = [SortImports, RedundantBraces, RedundantParens, PreferCurlyFors]
project.git = true
spaces.beforeContextBoundColon = true