-
Notifications
You must be signed in to change notification settings - Fork 1
/
.scalafmt.conf
52 lines (42 loc) · 1.24 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
# Overall we are trying to use default settings to the
# maximum extent possible. Removing non-default
# settings is preferred over adding especially as
# the Scala language evolves and styles change.
# Test upgrades: $ scripts/scalafmt --test 2> diff.txt
version = 3.8.3
docstrings.style = AsteriskSpace
project.git = true
project.excludePaths = [
"glob:**/scalalib/**",
"glob:**/project/**",
"glob:**/test-suite/js/src/test/resources/SourceMapTestTemplate.scala"
]
# Default runner.dialect is deprecated, so set explicitly
runner.dialect = Scala213Source3
# new additions
fileOverride {
"glob:**/scala-3/**" {
runner.dialect = scala3
}
}
optIn.breakChainOnFirstMethodDot = false
# Preserve some overflow
newlines.avoidForSimpleOverflow = [tooLong, punct, slc]
indent.callSite = 4
indentOperator.exemptScope = aloneArgOrBody
indentOperator.include = ".*"
indentOperator.exclude = "^(?:&&|\\|\\||\\+)$"
newlines.source = keep
binPack.preset = true
binPack.parentConstructors = keep
binPack.unsafeCallSite = oneline
binPack.literalsExclude = []
binPack.literalsIncludeSimpleExpr = true
# Keep control sites more streamlined
indent.ctrlSite = 4
danglingParentheses.ctrlSite = false
rewriteTokens = {
"⇒": "=>"
"→": "->"
"←": "<-"
}