You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by md...@apache.org on 2022/11/11 19:03:49 UTC

[incubator-pekko-persistence-dynamodb] 01/03: Update scalafmt

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-dynamodb.git

commit 04418b6cd28f270022c71e3355e5c5014f5f2ba4
Author: Matthew de Detrich <ma...@aiven.io>
AuthorDate: Fri Nov 11 18:00:56 2022 +0100

    Update scalafmt
---
 .scalafmt.conf      | 55 +++++++++++++++++++++++++++++++++++++----------------
 project/plugins.sbt |  2 +-
 2 files changed, 40 insertions(+), 17 deletions(-)

diff --git a/.scalafmt.conf b/.scalafmt.conf
index 0cabdd6..2ca4ece 100644
--- a/.scalafmt.conf
+++ b/.scalafmt.conf
@@ -1,18 +1,40 @@
-version = 2.6.4
-
-style = defaultWithAlign
-
-docstrings                 = JavaDoc
-indentOperator             = spray
-maxColumn                  = 120
-rewrite.rules              = [RedundantParens, SortImports, AvoidInfix]
-unindentTopLevelOperators  = true
-align.preset = more
-optIn.breakChainOnFirstMethodDot = false
-optIn.configStyleArguments = false
-danglingParentheses = false
-spaces.inImportCurlyBraces = true
-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,8 +66,9 @@ rewrite.neverInfix.excludeFilters = [
   theSameElementsAs
   theSameElementsInOrderAs
 ]
-rewriteTokens = {
+rewriteTokens          = {
   "⇒": "=>"
   "→": "->"
   "←": "<-"
 }
+project.layout         = StandardConvention
diff --git a/project/plugins.sbt b/project/plugins.sbt
index df26c9e..952b085 100644
--- a/project/plugins.sbt
+++ b/project/plugins.sbt
@@ -4,6 +4,6 @@ addSbtPlugin("com.github.gseitz" % "sbt-release"     % "1.0.9")
 addSbtPlugin("com.jsuereth"      % "sbt-pgp"         % "2.0.1")
 addSbtPlugin("com.lightbend"     % "sbt-whitesource" % "0.1.7")
 addSbtPlugin("com.typesafe.sbt"  % "sbt-git"         % "0.9.3")
-addSbtPlugin("org.scalameta"     % "sbt-scalafmt"    % "2.4.2")
+addSbtPlugin("org.scalameta"     % "sbt-scalafmt"    % "2.4.6")
 // https://github.com/dwijnand/sbt-dynver
 addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.1.1")


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org