From e9b14f921cdaa0357aa58f4a72f930981b3042fb Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sun, 23 Aug 2020 11:23:12 +0200 Subject: Scala: Stricter Scalafmt settings. Change-Id: Ic84d59edebba6dde5f26ca910fa05d9033b1078e --- .scalafmt.conf | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.scalafmt.conf') diff --git a/.scalafmt.conf b/.scalafmt.conf index a1fde4d..20d91a4 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -2,3 +2,7 @@ edition = 2019-10 maxColumn = 100 docstrings = JavaDoc assumeStandardLibraryStripMargin = true +rewrite.rules = [AvoidInfix, PreferCurlyFors, RedundantBraces, RedundantParens, SortModifiers, SortImports] +rewrite.redundantBraces.generalExpressions = true +trailingCommas = preserve +optIn.forceBlankLineBeforeDocstring = true -- cgit v1.2.3