-
Notifications
You must be signed in to change notification settings - Fork 2
/
.scalafmt.conf
59 lines (48 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
47
48
49
50
51
52
53
54
55
56
57
58
59
version = "3.8.3"
runner.dialect = scala3
style = defaultWithAlign
maxColumn = 120
align = most
continuationIndent.defnSite = 2
align.arrowEnumeratorGenerator = true
align.openParenCallSite = false
align.openParenDefnSite = false
assumeStandardLibraryStripMargin = true
align.stripMargin = true
danglingParentheses.defnSite = true
danglingParentheses.callSite = true
danglingParentheses.exclude = [class, trait, enum, def]
docstrings.style = Asterisk
docstrings.wrap = "no"
docstrings.forceBlankLineBefore = true
rewrite.rules = [RedundantBraces, RedundantParens, SortImports, PreferCurlyFors, SortModifiers]
rewrite.redundantBraces.includeUnitMethods = true
rewrite.redundantBraces.stringInterpolation = true
rewrite.redundantBraces.methodBodies = false
rewrite.imports.sort = ascii
rewrite.imports.groups = [
["javax?\\..*"]
["org\\..*"]
["com\\..*"]
["scala\\..*"]
["io\\..*", "cats\\..*"]
["scala\\.concurrent\\..*"]
]
rewrite.sortModifiers {
order = [
override
private
protected
final
sealed
abstract
lazy
implicit
]
}
rewrite.trailingCommas.style = "never"
newlines.topLevelStatementBlankLines = [
{
blanks { before = 1 }
}
]