From b78d2b71f04b0709b3ac1d781c6778101d7ce799 Mon Sep 17 00:00:00 2001 From: Sandro La Bruzzo Date: Wed, 12 Jan 2022 09:38:34 +0100 Subject: [PATCH] updated scala format configuration --- .../src/main/resources/scalafmt/scalafmt.conf | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/dhp-build/dhp-code-style/src/main/resources/scalafmt/scalafmt.conf b/dhp-build/dhp-code-style/src/main/resources/scalafmt/scalafmt.conf index 00c866f28..0b5dbe0b4 100644 --- a/dhp-build/dhp-code-style/src/main/resources/scalafmt/scalafmt.conf +++ b/dhp-build/dhp-code-style/src/main/resources/scalafmt/scalafmt.conf @@ -7,9 +7,15 @@ continuationIndent.callSite = 2 continuationIndent.defnSite = 2 danglingParentheses = true indentOperator = spray -maxColumn = 100 +maxColumn = 120 newlines.alwaysBeforeTopLevelStatements = true -#project.excludeFilters = ["\.*\.sbt"] -rewrite.rules = [RedundantParens, SortImports] +project.excludeFilters = [".*\\.sbt"] +rewrite.rules = [AvoidInfix] +rewrite.rules = [ExpandImportSelectors] +rewrite.rules = [RedundantBraces] +rewrite.rules = [RedundantParens] +rewrite.rules = [SortImports] +rewrite.rules = [SortModifiers] +rewrite.rules = [PreferCurlyFors] spaces.inImportCurlyBraces = false unindentTopLevelOperators = true \ No newline at end of file