-
Notifications
You must be signed in to change notification settings - Fork 3
/
.scalafmt.conf
40 lines (33 loc) · 1.08 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
# Test upgrades: $ scripts/scalafmt --test 2> diff.txt
version = 3.8.3
runner.dialect = scala213source3
preset = default
# Match Scala Native
docstrings.style = AsteriskSpace
assumeStandardLibraryStripMargin = true
project.git = true
# Added for CI error via --test option
runner.fatalWarnings = true
# This creates less of a diff but is not default
# but is more aligned with Scala.js syntax.
newlines.beforeCurlyLambdaParams = multilineWithCaseOnly
# allows binPack call site to be formatted with
# args binpacked or one for each arg if desired.
newlines.source = keep
# binPack args for more control
# matrix can have two element
# one col for row order or one line for column order
binPack.literalsMinArgCount = 2
binPack.literalsIncludeSimpleExpr = true
binPack.unsafeCallSite = true # allow user wrapping at call sites
# Keep control sites more streamlined
indent.ctrlSite = 4
danglingParentheses.ctrlSite = false
# Default is not recommended
indentOperator.exemptScope = aloneEnclosed
# allow dialect for Scala 3
fileOverride {
"glob:**/scala-3/**.scala" {
runner.dialect = scala3
}
}