-
Notifications
You must be signed in to change notification settings - Fork 32
/
.scalafmt.conf
51 lines (38 loc) · 1.32 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
version = 2.7.2
preset = default
maxColumn = 145 # Fits macBook 15" JetBrains Mono 13 with moderate sidebar
docstrings.style = Asterisk
assumeStandardLibraryStripMargin = true
continuationIndent.callSite = 2
continuationIndent.defnSite = 2
continuationIndent.ctorSite = 2
indentOperator.topLevelOnly = false
indentOperator.preset = akka
align.stripMargin = true
align.preset = none
align.arrowEnumeratorGenerator = false
align.openParenCallSite = false
align.openParenDefnSite = false
newlines.source = keep
newlines.topLevelStatements = [before, after]
newlines.alwaysBeforeElseAfterCurlyIf = false
newlines.afterCurlyLambdaParams = preserve
newlines.implicitParamListModifierPrefer = after
newlines.avoidForSimpleOverflow = [punct]
rewrite.rules = [RedundantBraces, RedundantParens, SortModifiers, PreferCurlyFors, SortImports]
rewrite.redundantBraces.generalExpressions = true
rewrite.redundantBraces.ifElseExpressions = true
rewrite.redundantBraces.methodBodies = true
rewrite.redundantBraces.stringInterpolation = true
rewrite.redundantBraces.parensForOneLineApply = true
spaces.beforeContextBoundColon = Never
trailingCommas = never
binPack.literalArgumentLists = true
includeCurlyBraceInSelectChains = true
includeNoParensInSelectChains = true
importSelectors = singleLine
rewriteTokens = {
"⇒": "=>"
"→": "->"
"←": "<-"
}