-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scalafmt.conf
38 lines (38 loc) · 1.05 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
// https://scalameta.org/scalafmt/docs/configuration.html
project.git = true
version = 2.7.5
maxColumn = 120
align = some
trailingCommas = preserve
continuationIndent {
callSite = 2
defnSite = 2
extendSite = 2
withSiteRelativeToExtends = 2
}
align.tokenCategory {
Equals = Assign
LeftArrow = Assign
}
align {
arrowEnumeratorGenerator = false
multiline = false
}
align.tokens.add = [
{code = "=>", owner = "Case"},
{code = ":", owner = ".*"},
{code = "=", owner = ".*"},
{code = "%", owner = "Term.ApplyInfix"},
{code = "%%", owner = "Term.ApplyInfix"},
{code = "%%%", owner = "Term.ApplyInfix"},
{code = "->", owner = "Term.ApplyInfix"},
{code = "<-", owner = ":*"},
{code = ":=", owner = "Term.ApplyInfix"},
{code = "@", owner = "Pat.Bind"}
]
assumeStandardLibraryStripMargin = true
rewrite.rules = [PreferCurlyFors, RedundantParens, SortImports, SortModifiers]
verticalMultiline.atDefnSite = true
verticalMultiline.excludeDanglingParens = []
verticalMultiline.newlineAfterOpenParen = true
verticalMultiline.newlineBeforeImplicitKW = true