-
Notifications
You must be signed in to change notification settings - Fork 14
/
.scalafmt.conf
43 lines (41 loc) · 918 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.8.3"
style = default
runner.dialect = scala3
docstrings.style = Asterisk
maxColumn = 120
continuationIndent.defnSite = 2
includeCurlyBraceInSelectChains = false
assumeStandardLibraryStripMargin = true
align.tokens."+" = [
"<-", #Try to align simple for blocks for readability
"//", #If you have many `//` on the end of lines next to each other, try and align them for readability
{code = "%", owner = "Term.ApplyInfix"}, #SBT specific stuff. Format the dependencies in a way that makes them more readable.
{code = "%%", owner = "Term.ApplyInfix"},
{code = "%%%", owner = "Term.ApplyInfix"}
]
rewrite.rules = [
AvoidInfix
RedundantBraces
RedundantParens
AsciiSortImports
PreferCurlyFors
]
rewrite.neverInfix.excludeFilters = [
until
to
by
eq
ne
"should.*"
"contain.*"
"must.*"
in
be
taggedAs
thrownBy
synchronized
have
when
size
theSameElementsAs
]