-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.scalafmt.conf
46 lines (36 loc) · 1.17 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
version = 3.8.3
runner.dialect = scala3
maxColumn = 110
assumeStandardLibraryStripMargin = true
align.stripMargin = true
align.openParenDefnSite = true
align.preset = more
indent.main = 2
indent.withSiteRelativeToExtends = 2
spaces.beforeContextBoundColon = IfMultipleBounds
includeNoParensInSelectChains = true
importSelectors = noBinPack
docstrings.style = keep
rewrite.rules = [
PreferCurlyFors,
SortModifiers,
RedundantParens,
RedundantBraces
]
rewrite.imports.expand = true
rewrite.imports.sort = original
rewrite.trailingCommas.style = multiple
rewrite.redundantBraces.includeUnitMethods = false
rewrite.redundantBraces.stringInterpolation = true
rewrite.redundantBraces.methodBodies = true
rewrite.redundantBraces.ifElseExpressions = true
rewrite.redundantBraces.parensForOneLineApply = true
newlines.implicitParamListModifierPrefer = before
newlines.sometimesBeforeColonInMethodReturnType = false
newlines.afterCurlyLambdaParams = never
newlines.neverInResultType = true
newlines.configStyleCallSite.prefer = true
danglingParentheses.defnSite = true
danglingParentheses.callSite = true
danglingParentheses.bracketDefnSite = true
danglingParentheses.bracketCallSite = true