-
Notifications
You must be signed in to change notification settings - Fork 1
/
.scalafmt.conf
executable file
·30 lines (27 loc) · 1.12 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
version = 3.8.3
project.git = true
project.excludePaths = [ "glob:**/project/**.scala" ]
runner.dialect = scala3
preset = default
maxColumn = 120
indent.main = 4
align.preset = more
indentOperator.preset = spray
rewrite.rules = [RedundantBraces, RedundantParens]
rewrite.redundantBraces.generalExpressions = false
spaces.inImportCurlyBraces = true
indentOperator.exemptScope = oldTopLevel
newlines.implicitParamListModifierPrefer = before
docstrings.wrap = no
# Recommended, to not penalize `match` statements
#indent.matchSite = 2
newlines.source = keep
rewrite.scala3.convertToNewSyntax = true
rewrite.scala3.removeOptionalBraces = yes
rewrite.scala3.insertEndMarkerMinLines = 5
align.tokens = [
{code = "%" , owner = "Term.ApplyInfix"},
{code = "%%" , owner = "Term.ApplyInfix"}
{code = "%%%", owner = "Term.ApplyInfix"}
{code = "="}
]