From 9f9817bb12e3a4f73177747d41e6458c7673075e Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Wed, 13 Sep 2023 00:21:46 +0000 Subject: [PATCH 1/3] Update scalafmt-core to 3.7.14 --- .scalafmt.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.scalafmt.conf b/.scalafmt.conf index 0173188..0c9300d 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,4 +1,4 @@ -version = "3.5.9" +version = "3.7.14" runner.dialect = scala3 rewrite.scala3.insertEndMarkerMinLines = 50 maxColumn = 140 From 2b798a92fe425dc13a3a51cfc71de0be61976322 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Wed, 13 Sep 2023 00:21:55 +0000 Subject: [PATCH 2/3] Reformat with scalafmt 3.7.14 Executed command: scalafmt --non-interactive --- plugin/src/main/scala-3/BetterToStringPlugin.scala | 6 +++++- plugin/src/main/scala-3/Scala3CompilerApi.scala | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/plugin/src/main/scala-3/BetterToStringPlugin.scala b/plugin/src/main/scala-3/BetterToStringPlugin.scala index e90a5fc..72858e6 100644 --- a/plugin/src/main/scala-3/BetterToStringPlugin.scala +++ b/plugin/src/main/scala-3/BetterToStringPlugin.scala @@ -38,7 +38,11 @@ final class BetterToStringPluginPhase extends PluginPhase: override val phaseName: String = "better-tostring-phase" override val runsAfter: Set[String] = Set(org.polyvariant.AfterPhase.name) - override def transformTemplate(t: Template)(using ctx: Context): Tree = + override def transformTemplate( + t: Template + )( + using ctx: Context + ): Tree = val clazz = ctx.owner.asClass val ownerOwner = ctx.owner.owner diff --git a/plugin/src/main/scala-3/Scala3CompilerApi.scala b/plugin/src/main/scala-3/Scala3CompilerApi.scala index 86d18a2..c999584 100644 --- a/plugin/src/main/scala-3/Scala3CompilerApi.scala +++ b/plugin/src/main/scala-3/Scala3CompilerApi.scala @@ -46,7 +46,9 @@ object Scala3CompilerApi: final case class ClassContext(t: Template, clazz: ClassSymbol): def mapTemplate(f: Template => Template): ClassContext = copy(t = f(t)) - def instance(using Context): Scala3CompilerApi = new Scala3CompilerApi: + def instance( + using Context + ): Scala3CompilerApi = new Scala3CompilerApi: def params(clazz: Clazz): List[Param] = clazz.t.body.collect { From de279880db2ab8726d5212be8a9b420a96e0dca1 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Wed, 13 Sep 2023 00:21:55 +0000 Subject: [PATCH 3/3] Add 'Reformat with scalafmt 3.7.14' to .git-blame-ignore-revs --- .git-blame-ignore-revs | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .git-blame-ignore-revs diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 0000000..0331968 --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,2 @@ +# Scala Steward: Reformat with scalafmt 3.7.14 +2b798a92fe425dc13a3a51cfc71de0be61976322