This repository has been archived by the owner on Apr 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.scalafmt.conf
102 lines (99 loc) · 2.38 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
version = 3.0.0-RC3
preset = default
runner.dialect = scala3
indent.main = 2
indent.significant = 3
continuationIndent.ctorSite = 4
continuationIndent.defnSite = 2
continuationIndent.extendSite = 4
continuationIndent.withSiteRelativeToExtends = 2
optIn.configStyleArguments = false
align = true
align.preset = most
align.multiline = true
assumeStandardLibraryStripMargin = false
align.stripMargin = true
align.arrowEnumeratorGenerator = true
align.openParenCallSite = true
align.openParenDefnSite = true
optIn.configStyleArguments = true
runner.optimizer.forceConfigStyleOnOffset = 3
runner.optimizer.forceConfigStyleMinArgCount = 2
danglingParentheses = true
danglingParentheses.defnSite = true
danglingParentheses.ctrlSite = true
danglingParentheses.callSite = true
danglingParentheses.exclude = [def]
docstrings.style = SpaceAsterisk
docstrings.oneline = fold
docstrings.wrap = yes
newlines.topLevelStatements = [before, after]
newlines.topLevelStatementsMinBreaks = 2
newlines.beforeCurlyLambdaParams = multilineWithCaseOnly
maxColumn = 120
rewrite.rules = [AvoidInfix, RedundantParens, RedundantBraces, SortModifiers, PreferCurlyFors, ExpandImportSelectors]
rewrite.redundantBraces.stringInterpolation = true
rewrite.redundantBraces.generalExpressions = true
rewrite.redundantBraces.ifElseExpressions = true
rewrite.redundantBraces.methodBodies = true
rewrite.redundantBraces.includeUnitMethods = true
rewrite.redundantBraces.parensForOneLineApply = true
rewrite.sortModifiers.order = [
implicit
final
sealed
abstract
override
private
protected
lazy
open
transparent
inline
infix
opaque
]
rewrite.neverInfix.excludeFilters = [
until
to
by
eq
ne
"should.*"
"contain.*"
"must.*"
in
ignore
be
taggedAs
thrownBy
synchronized
have
when
size
only
noneOf
oneElementOf
noElementsOf
atLeastOneElementOf
atMostOneElementOf
allElementsOf
inOrderElementsOf
theSameElementsAs
]
rewrite.sortModifiers.order = ["private", "protected", "final", "sealed", "abstract", "implicit", "override", "lazy"]
spaces.inImportCurlyBraces = true
spaces.beforeContextBoundColon = IfMultipleBounds
spaces.inInterpolatedStringCurlyBraces = true
project.git = true
project.includeFilters = [
".*\\.scala$"
".*\\.sbt$"
".*\\.sc$"
]
literals.long = Upper
literals.float = Lower
literals.double = Lower
literals.hexDigits = Lower
literals.hexPrefix = Lower
literals.scientific = Lower