From b7eec74c8a47af1052bf4d5a5db2a4bb6d1c3ff0 Mon Sep 17 00:00:00 2001 From: "typelevel-steward[bot]" <106827141+typelevel-steward[bot]@users.noreply.github.com> Date: Tue, 11 Jul 2023 00:26:34 +0000 Subject: [PATCH] Reformat with scalafmt 3.7.8 Executed command: scalafmt --non-interactive --- .../davidgregory084/ScalacOptions.scala | 35 +++++++++++++++---- .../modePerConfiguration/build.sbt | 2 +- .../sbt-tpolecat/scalacOptions/build.sbt | 2 +- 3 files changed, 30 insertions(+), 9 deletions(-) diff --git a/plugin/src/main/scala/io/github/davidgregory084/ScalacOptions.scala b/plugin/src/main/scala/io/github/davidgregory084/ScalacOptions.scala index 54b467e..5f5c8a3 100644 --- a/plugin/src/main/scala/io/github/davidgregory084/ScalacOptions.scala +++ b/plugin/src/main/scala/io/github/davidgregory084/ScalacOptions.scala @@ -564,7 +564,10 @@ private[davidgregory084] trait ScalacOptions { /** Warn when non-Unit expression results are unused. */ val warnValueDiscard = - warnOption("value-discard", version => version.isBetween(V2_13_0, V3_0_0) || version.isAtLeast(V3_3_0)) + warnOption( + "value-discard", + version => version.isBetween(V2_13_0, V3_0_0) || version.isAtLeast(V3_3_0) + ) /** Warn when an expression is ignored because it is followed by another expression. */ @@ -589,29 +592,44 @@ private[davidgregory084] trait ScalacOptions { /** Warn if an implicit parameter is unused. */ val warnUnusedImplicits = - warnUnusedOption("implicits", version => version.isBetween(V2_13_0, V3_0_0) || version.isAtLeast(V3_3_0)) + warnUnusedOption( + "implicits", + version => version.isBetween(V2_13_0, V3_0_0) || version.isAtLeast(V3_3_0) + ) /** Warn if an explicit parameter is unused. */ val warnUnusedExplicits = - warnUnusedOption("explicits", version => version.isBetween(V2_13_0, V3_0_0) || version.isAtLeast(V3_3_0)) + warnUnusedOption( + "explicits", + version => version.isBetween(V2_13_0, V3_0_0) || version.isAtLeast(V3_3_0) + ) /** Warn if an import selector is not referenced. */ val warnUnusedImports = - warnUnusedOption("imports", version => version.isBetween(V2_13_0, V3_0_0) || version.isAtLeast(V3_3_0)) + warnUnusedOption( + "imports", + version => version.isBetween(V2_13_0, V3_0_0) || version.isAtLeast(V3_3_0) + ) /** Warn if a local definition is unused. */ val warnUnusedLocals = - warnUnusedOption("locals", version => version.isBetween(V2_13_0, V3_0_0) || version.isAtLeast(V3_3_0)) + warnUnusedOption( + "locals", + version => version.isBetween(V2_13_0, V3_0_0) || version.isAtLeast(V3_3_0) + ) /** Warn if either explicit or implicit parameters are unused. * * Equivalent to -Wunused:explicits,implicits. */ val warnUnusedParams = - warnUnusedOption("params", version => version.isBetween(V2_13_0, V3_0_0) || version.isAtLeast(V3_3_0)) + warnUnusedOption( + "params", + version => version.isBetween(V2_13_0, V3_0_0) || version.isAtLeast(V3_3_0) + ) /** Warn if a variable bound in a pattern is unused. */ @@ -621,7 +639,10 @@ private[davidgregory084] trait ScalacOptions { /** Warn if a private member is unused. */ val warnUnusedPrivates = - warnUnusedOption("privates", version => version.isBetween(V2_13_0, V3_0_0) || version.isAtLeast(V3_3_0)) + warnUnusedOption( + "privates", + version => version.isBetween(V2_13_0, V3_0_0) || version.isAtLeast(V3_3_0) + ) /** Unused warning options (-Wunused:) */ diff --git a/plugin/src/sbt-test/sbt-tpolecat/modePerConfiguration/build.sbt b/plugin/src/sbt-test/sbt-tpolecat/modePerConfiguration/build.sbt index b173af4..5d41d05 100644 --- a/plugin/src/sbt-test/sbt-tpolecat/modePerConfiguration/build.sbt +++ b/plugin/src/sbt-test/sbt-tpolecat/modePerConfiguration/build.sbt @@ -16,7 +16,7 @@ crossScalaVersions := Seq( Scala213, Scala30, Scala31, - Scala33, + Scala33 ) Compile / tpolecatOptionsMode := CiMode diff --git a/plugin/src/sbt-test/sbt-tpolecat/scalacOptions/build.sbt b/plugin/src/sbt-test/sbt-tpolecat/scalacOptions/build.sbt index 66f4653..9b91719 100644 --- a/plugin/src/sbt-test/sbt-tpolecat/scalacOptions/build.sbt +++ b/plugin/src/sbt-test/sbt-tpolecat/scalacOptions/build.sbt @@ -206,7 +206,7 @@ val Scala33Options = "-Wunused:params", "-Wunused:privates", "-source", - "3.0-migration", + "3.0-migration" ) TaskKey[Unit]("checkDevMode") := {