From eacd7ccc54abaa36ccc475286f7c095d0cd67506 Mon Sep 17 00:00:00 2001 From: Brice Jaglin Date: Fri, 27 Sep 2024 23:32:27 +0200 Subject: [PATCH] scalafix 0.13.0 --- project/Dependencies.scala | 2 +- .../scala/scalafix/internal/sbt/SbtCompletionsSuite.scala | 4 ++-- src/test/scala/scalafix/internal/sbt/ScalafixAPISuite.scala | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/project/Dependencies.scala b/project/Dependencies.scala index 1145abce..593cc7e6 100644 --- a/project/Dependencies.scala +++ b/project/Dependencies.scala @@ -2,7 +2,7 @@ import sbt._ object Dependencies { val x = List(1) // scalafix:ok - def scalafixVersion: String = "0.12.1+81-c6766833-SNAPSHOT" + def scalafixVersion: String = "0.13.0" val all = List( "org.eclipse.jgit" % "org.eclipse.jgit" % "5.13.3.202401111512-r", diff --git a/src/test/scala/scalafix/internal/sbt/SbtCompletionsSuite.scala b/src/test/scala/scalafix/internal/sbt/SbtCompletionsSuite.scala index 3f3d70da..4cd7e2e9 100644 --- a/src/test/scala/scalafix/internal/sbt/SbtCompletionsSuite.scala +++ b/src/test/scala/scalafix/internal/sbt/SbtCompletionsSuite.scala @@ -115,7 +115,7 @@ class SbtCompletionsSuite extends AnyFunSuite { |DisableSyntax | Reports an error for disabled features such as var or XML literals. |ExplicitResultTypes - | Inserts type annotations for inferred public members. Only compatible with Scala 2.x. + | Inserts type annotations for inferred public members. |LeakingImplicitClassVal | Adds 'private' to val parameters of implicit value classes |NoAutoTupling @@ -125,7 +125,7 @@ class SbtCompletionsSuite extends AnyFunSuite { |OrganizeImports | Organize import statements |ProcedureSyntax - | Replaces deprecated procedure syntax with explicit ': Unit =' + | Replaces deprecated Scala 2.x procedure syntax with explicit ': Unit =' |RedundantSyntax | Removes redundant syntax such as `final` modifiers on an object |RemoveUnused diff --git a/src/test/scala/scalafix/internal/sbt/ScalafixAPISuite.scala b/src/test/scala/scalafix/internal/sbt/ScalafixAPISuite.scala index c3a55508..21542cf7 100644 --- a/src/test/scala/scalafix/internal/sbt/ScalafixAPISuite.scala +++ b/src/test/scala/scalafix/internal/sbt/ScalafixAPISuite.scala @@ -36,7 +36,7 @@ class ScalafixAPISuite extends AnyFunSuite { "2.12", Arg.ToolClasspath( Nil, - List("ch.epfl.scala" %% "example-scalafix-rule" % "4.0.0"), + List("ch.epfl.scala" %% "example-scalafix-rule" % "5.0.0"), Seq( Repository.central, MavenRepository.of(