From 98f9df0f81ba1c2cb442d4f8b1e0a58dfd8087f9 Mon Sep 17 00:00:00 2001 From: SimY4 Date: Tue, 20 Feb 2024 12:16:28 +1000 Subject: [PATCH] scalafmt 3.8 --- xpath-to-xml-scala/.scalafmt.conf | 4 ++-- xpath-to-xml-scala/build-2.12.gradle | 2 +- xpath-to-xml-scala/build-2.13.gradle | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/xpath-to-xml-scala/.scalafmt.conf b/xpath-to-xml-scala/.scalafmt.conf index a7e19bfb..88613c3a 100644 --- a/xpath-to-xml-scala/.scalafmt.conf +++ b/xpath-to-xml-scala/.scalafmt.conf @@ -1,4 +1,4 @@ -version = "3.7.17" +version = "3.8.0" runner.dialect = Scala213Source3 maxColumn = 120 align.preset = more @@ -13,7 +13,7 @@ danglingParentheses.preset = true spaces.inImportCurlyBraces = true optIn.annotationNewlines = true newlines.alwaysBeforeMultilineDef = false -rewrite.rules = [Imports, RedundantBraces, SortModifiers] +rewrite.rules = [Imports, RedundantBraces, RedundantParens, SortModifiers] rewrite.redundantBraces.generalExpressions = false rewrite.imports.sort = scalastyle rewrite.imports.groups = [ diff --git a/xpath-to-xml-scala/build-2.12.gradle b/xpath-to-xml-scala/build-2.12.gradle index bae8a78f..f6fa4b3c 100644 --- a/xpath-to-xml-scala/build-2.12.gradle +++ b/xpath-to-xml-scala/build-2.12.gradle @@ -30,7 +30,7 @@ javadocJar { spotless { scala { - scalafmt('3.7.17').configFile('.scalafmt.conf') + scalafmt('3.8.0').configFile('.scalafmt.conf') licenseHeaderFile rootProject.file('gradle/license.header'), 'package ' } } diff --git a/xpath-to-xml-scala/build-2.13.gradle b/xpath-to-xml-scala/build-2.13.gradle index bf4ce0b8..d39b3ed3 100644 --- a/xpath-to-xml-scala/build-2.13.gradle +++ b/xpath-to-xml-scala/build-2.13.gradle @@ -30,7 +30,7 @@ javadocJar { spotless { scala { - scalafmt('3.7.17').configFile('.scalafmt.conf') + scalafmt('3.8.0').configFile('.scalafmt.conf') licenseHeaderFile rootProject.file('gradle/license.header'), 'package ' } }