forked from AVSystem/scala-commons
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.scalafmt.conf
More file actions
99 lines (86 loc) · 1.89 KB
/
.scalafmt.conf
File metadata and controls
99 lines (86 loc) · 1.89 KB
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
version = "3.10.4"
runner.dialect = scala3
runner.dialectOverride.allowSignificantIndentation = false
runner.dialectOverride.withAllowEndMarker = false
runner.dialectOverride.allowFewerBraces = false
maxColumn = 120
align.openParenCallSite = false
align.preset = none
align.stripMargin = true
assumeStandardLibraryStripMargin = true
continuationIndent {
defnSite = 2
ctorSite = 2
extendSite = 2
withSiteRelativeToExtends = 2
}
docstrings.oneline = keep
docstrings.style = Asterisk
docstrings.wrap = no
project.git = true
binPack {
parentConstructors = OnelineIfPrimaryOneline
literalsSingleLine = false
}
newlines {
alwaysBeforeMultilineDef = false
afterCurlyLambda = preserve
implicitParamListModifierPrefer = after
penalizeSingleSelectMultiArgList = false
avoidForSimpleOverflow = [punct, tooLong]
afterInfix = some
}
rewrite.rules = [AvoidInfix, SortModifiers, SortImports, PreferCurlyFors, RedundantParens, RedundantBraces]
rewrite.sortModifiers.order = ["override", "private", "protected", "implicit", "final", "sealed", "abstract", "lazy"]
rewrite.redundantBraces {
stringInterpolation = true
generalExpressions = false
methodBodies = true
includeUnitMethods = false
parensForOneLineApply = true
}
rewrite.trailingCommas.style = "always"
trailingCommas = multiple
importSelectors = singleLine
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
theSameElementsInOrderAs
contains
like
zip
orElse
getOrElse
]
danglingParentheses.exclude = [
// "class", //with that, trailling comma don't work in class definition
"trait"
]
verticalMultiline {
atDefnSite = true
newlineAfterOpenParen = true
}