.scalafmt.conf
version = "1.5.1"
style = defaultWithAlign
maxColumn = 120
#TODO: Remove these 3 settings when moving to scalafmt 1.6
align.openParenCallSite = false
align.openParenDefnSite = false
danglingParentheses = true
assumeStandardLibraryStripMargin = true
rewrite.rules = [AvoidInfix, RedundantBraces, SortModifiers, PreferCurlyFors]
rewrite.redundantBraces.maxLines = 3
#Would be neat if we could just add to this, but we can't, so we copy the defaults into here too
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
#Our custom stuff starts here
max
min
]