-
Notifications
You must be signed in to change notification settings - Fork 17
/
.scalafmt.conf
41 lines (35 loc) · 987 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
version = "3.8.0"
runner.dialect = scala213
style = defaultWithAlign
align.openParenCallSite = false
align.openParenDefnSite = false
align.tokens = [
{code = "->"},
{code = "<-"},
{code = "=>", owner = "Case"},
{code = "%", owner = "Term.ApplyInfix"},
{code = "%%", owner = "Term.ApplyInfix"},
{code = ":", owner = "Term.Param"}
]
align.preset = some
rewriteTokens = {
"⇒": "=>"
"→": "->"
"←": "<-"
}
continuationIndent.callSite = 2
continuationIndent.defnSite = 2
danglingParentheses.preset = true
indentOperator.preset = spray
indentOperator.exemptScope = all
maxColumn = 120
lineEndings = preserve
newlines.topLevelStatementBlankLines = [{ blanks { before = 1 } }]
project.excludeFilters = [".*\\.sbt"]
rewrite.rules = [RedundantParens, SortImports]
spaces.inImportCurlyBraces = false
docstrings = JavaDoc
docstrings.style = Asterisk
docstrings.wrap = false
optIn.configStyleArguments = true
rewrite.rules = [RedundantBraces, SortImports, sortModifiers]