-
Notifications
You must be signed in to change notification settings - Fork 27
/
.scalafmt.conf
45 lines (33 loc) · 1000 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
40
41
42
43
44
45
version = "2.0.0-RC8"
maxColumn = 100
encoding = "UTF-8"
docstrings = JavaDoc
continuationIndent = 4
continuationIndent.callSite = 2
continuationIndent.defnSite = 4
align = more
align.openParenCallSite = false
align.openParenDefnSite = false
align.tokens = [
{code = "=>", owner = "Case"},
{code = "%", owner = "Term.ApplyInfix"},
{code = "%%", owner = "Term.ApplyInfix"}
]
newlines.alwaysBeforeTopLevelStatements = false
newlines.alwaysBeforeElseAfterCurlyIf = false
newlines.afterCurlyLambda = never
rewrite.rules = [ExpandImportSelectors]
rewrite.rules = [RedundantParens]
rewrite.rules = [PreferCurlyFors]
rewrite.rules = [sortmodifiers]
rewrite.sortModifiers.order = [
"implicit", "final", "sealed", "abstract",
"override", "private", "protected", "lazy"
]
literals.long = Upper
literals.float = Lower
literals.double = Lower
lineEndings = unix
//verticalMultiline.atDefnSite = true
//verticalMultiline.arityThreshold = 2
//verticalMultiline.newlineAfterOpenParen = true