forked from laserdisc-io/laserdisc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scalafmt.conf
39 lines (31 loc) · 829 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
version = 3.8.3
runner.dialect = scala213
align.preset = more # For pretty alignment.
maxColumn = 140 # For my wide 30" display.
project.excludePaths = ["glob:**/ProtocolBenchArr.scala"]
rewrite.sortModifiers.order = [
"override"
"private"
"protected"
"implicit"
"final"
"sealed"
"abstract"
"lazy"
]
rewrite.rules = [
SortModifiers
RedundantBraces
RedundantParens
AsciiSortImports
PreferCurlyFors
]
spaces.inByNameTypes = false
rewrite.redundantBraces.stringInterpolation = true
rewrite.redundantBraces.includeUnitMethods = true
newlines.afterCurlyLambda = preserve
newlines.neverInResultType = true
newlines.beforeMultilineDef = keep
newlines.sometimesBeforeColonInMethodReturnType = false
newlines.penalizeSingleSelectMultiArgList = false
newlines.implicitParamListModifierPrefer = before