-
Notifications
You must be signed in to change notification settings - Fork 1
/
.scalafmt.conf
37 lines (27 loc) · 1018 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
version = "2.7.5"
maxColumn = 120
docstrings = ScalaDoc
align = everything
align.arrowEnumeratorGenerator = true
align.openParenCallSite = false
align.tokens = [
{code = "%%", owner = "Term.ApplyInfix"},
{code = "%", owner = "Term.ApplyInfix"}
{code = "=>", owner = "Case"},
{code = "<-", owner = "Enumerator.Generator"},
{code = "=", owner = "(Enumerator.Val|Defn.(Va(l|r)|Def|Type)|Term.Assign)"},
{code = ",", owner = "Term.Assign"},
{code = "->", owner = "Term.Apply"}
]
assumeStandardLibraryStripMargin = true
continuationIndent.callSite = 2
continuationIndent.defnSite = 2
danglingParentheses = true
includeCurlyBraceInSelectChains = false
includeNoParensInSelectChains = false
newlines.alwaysBeforeTopLevelStatements = true
optIn.breakChainOnFirstMethodDot = true
rewrite.rules = [SortImports, RedundantBraces, RedundantParens, SortModifiers, PreferCurlyFors]
rewrite.redundantBraces.stringInterpolation = true
spaces.inImportCurlyBraces = true
verticalAlignMultilineOperators = true