-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.scalafmt.conf
54 lines (45 loc) · 1.45 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
version = 3.8.2
runner.dialect = scala3Future
align.preset = most
docstrings.blankFirstLine = unfold
docstrings.wrap = keep
maxColumn = 120
indent.main = 2
indent.defnSite = 2
rewrite.rules = [SortModifiers, RedundantParens, Imports]
rewrite.sortModifiers.preset = styleGuide
rewrite.trailingCommas.style = always
rewrite.imports.sort = original
rewrite.imports.groups = [
["re:javax?\\..*"],
["scala\\..*"],
[".*"],
["com.adamdabrowski\\..*"],
]
rewrite.scala3.convertToNewSyntax = true
rewrite.scala3.insertEndMarkerMinLines = 32
rewrite.scala3.removeEndMarkerMaxLines = 31
rewrite.scala3.removeOptionalBraces = {
"enabled": true,
"fewerBracesMinSpan": 2,
"fewerBracesMaxSpan": 0,
"oldSyntaxToo": false,
}
newlines.avoidForSimpleOverflow = [slc]
newlines.sometimesBeforeColonInMethodReturnType = false
includeNoParensInSelectChains = false
newlines.forceBeforeMultilineAssign = any
newlines.forceBeforeAssign = def
newlines.topLevelBodyIfMinStatements = [before, after]
newlines.topLevelBodyMinStatements = 2
newlines.topLevelStatementBlankLines = [
{maxNest = 0, blanks = 2}
{regex = "^Import"}
]
verticalMultiline.arityThreshold = 3
verticalMultiline.newlineAfterOpenParen = true
newlines.implicitParamListModifierForce = [before, after]
align.tokens."+" = [
{code = ":"},
{code = ",", owners = [{regex = "Term\\.Tuple"}]},
]