-
Notifications
You must be signed in to change notification settings - Fork 2
/
.scalafmt.conf
43 lines (37 loc) · 894 Bytes
/
.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
version = 3.0.0
style = default
maxColumn = 100
assumeStandardLibraryStripMargin = true
runner.dialect = scala213
align {
preset = none
stripMargin = true
}
newlines {
alwaysBeforeElseAfterCurlyIf = true
source = keep
}
rewrite {
rules = [
AsciiSortImports
PreferCurlyFors
RedundantBraces
RedundantParens
SortModifiers
]
redundantBraces {
parensForOneLineApply = false
}
sortModifiers.order = ["private", "protected", "implicit", "final", "sealed", "abstract", "override", "lazy"]
}
fileOverride {
# Apply some rules to the 'main' configuration only.
"glob:**/src/main/scala/**/*.scala" {
# Do not enforce infix in tests to allow it for test matchers.
rewrite.rules = ${rewrite.rules} [
AvoidInfix
]
# But exclude some words which are very common for infix usage.
rewrite.neverInfix.excludeFilters = [and, or]
}
}