This is an automated email from the ASF dual-hosted git repository. mdedetrich pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/incubator-pekko-persistence-r2dbc.git
commit 1b14b4e0c391ba97b644f15a7d95061fe4e536cf Author: Matthew de Detrich <[email protected]> AuthorDate: Mon Nov 14 22:04:42 2022 +0100 Update scalafmt --- .scalafmt.conf | 64 +++++++++++++++++++++++++++++++++++++++-------------- project/plugins.sbt | 2 +- 2 files changed, 48 insertions(+), 18 deletions(-) diff --git a/.scalafmt.conf b/.scalafmt.conf index d7ea3a6..efa297e 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,20 +1,40 @@ -version = 3.0.3 - -style = defaultWithAlign - -docstrings.style = Asterisk -indentOperator.preset = spray -maxColumn = 120 -rewrite.rules = [RedundantParens, SortImports, AvoidInfix] -unindentTopLevelOperators = true -align.tokens = [{code = "=>", owner = "Case"}] -align.openParenDefnSite = false -align.openParenCallSite = false -optIn.configStyleArguments = false -danglingParentheses.preset = false -spaces.inImportCurlyBraces = true -newlines.afterCurlyLambda = preserve -rewrite.neverInfix.excludeFilters = [ +version = 3.6.1 +runner.dialect = scala213 +project.git = true +style = defaultWithAlign +docstrings.style = Asterisk +docstrings.wrap = false +indentOperator.preset = spray +maxColumn = 120 +lineEndings = preserve +rewrite.rules = [RedundantParens, SortImports, AvoidInfix] +indentOperator.exemptScope = all +align.preset = some +align.tokens."+" = [ + { + code = "~>" + owners = [ + { regex = "Term.ApplyInfix" } + ] + } +] +literals.hexDigits = upper +literals.hexPrefix = lower +binPack.unsafeCallSite = always +binPack.unsafeDefnSite = always +binPack.indentCallSiteSingleArg = false +binPack.indentCallSiteOnce = true +newlines.avoidForSimpleOverflow = [slc] +newlines.source = keep +newlines.beforeMultiline = keep +align.openParenDefnSite = false +align.openParenCallSite = false +align.allowOverflow = true +optIn.breakChainOnFirstMethodDot = false +optIn.configStyleArguments = false +danglingParentheses.preset = false +spaces.inImportCurlyBraces = true +rewrite.neverInfix.excludeFilters = [ and min max @@ -44,4 +64,14 @@ rewrite.neverInfix.excludeFilters = [ allElementsOf inOrderElementsOf theSameElementsAs + theSameElementsInOrderAs +] +rewriteTokens = { + "⇒": "=>" + "→": "->" + "←": "<-" +} +project.excludeFilters = [ + "scripts/authors.scala" ] +project.layout = StandardConvention diff --git a/project/plugins.sbt b/project/plugins.sbt index 6027dbd..a05f0a4 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,5 +1,5 @@ addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.6.5") // for maintenance of copyright file header -addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.2") +addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6") addSbtPlugin("com.lightbend.sbt" % "sbt-java-formatter" % "0.7.0") // for releasing --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
