-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scalafmt.conf
58 lines (39 loc) · 1.15 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
54
55
56
57
58
version = "3.8.3"
runner.dialect = "scala213source3"
fileOverride {
"glob:**.sbt" {
runner.dialect = scala212source3
}
"glob:**/project/**.*" {
runner.dialect = scala212source3
}
}
align.preset = more
align.tokens = [
{ code = "=" },
{ code = "extends" },
{ code = "//" },
{ code = "<-", owners = ["Enumerator.Generator"] },
{ code = "=", owners = ["(Enumerator.Val|Defn.(Va(l|r)|GivenAlias|Def|Type))"] },
{ code = "=>", owners = ["Case"] },
{ code = "->", owners = ["Term.ApplyInfix"] },
{ code = ":=", owners = ["Term.ApplyInfix"] },
{ code = "%", owners = ["Term.ApplyInfix"] },
{ code = "%%", owners = ["Term.ApplyInfix"] }
]
align.allowOverflow = true,
align.tokenCategory = {
Equals = Assign,
LeftArrow = Assign
}
maxColumn = 120
docstrings.style = SpaceAsterisk
docstrings.blankFirstLine = yes
docstrings.wrap = yes
includeNoParensInSelectChains = true
optIn.breakChainOnFirstMethodDot = true
rewrite.rules = [RedundantBraces]
rewrite.redundantBraces.ifElseExpressions = true
rewrite.redundantBraces.stringInterpolation = true
rewrite.scala3.convertToNewSyntax = true
rewrite.scala3.removeOptionalBraces = true