Repository: scala-steward-org/scala-steward
Pull request #1980 (2021-02-28 19:51:40)

Move 'scalafix' package into 'edit' package and rename classes


Patch:
diff --git a/modules/core/src/main/scala/org/scalasteward/core/application/Context.scala b/modules/core/src/main/scala/org/scalasteward/core/application/Context.scala
index 9346c852..b05755de 100644
--- a/modules/core/src/main/scala/org/scalasteward/core/application/Context.scala
+++ b/modules/core/src/main/scala/org/scalasteward/core/application/Context.scala
@@ -19,8 +19,6 @@ package org.scalasteward.core.application
 import cats.Parallel
 import cats.effect._
 import cats.syntax.all._
-import org.typelevel.log4cats.Logger
-import org.typelevel.log4cats.slf4j.Slf4jLogger
 import org.http4s.Uri
 import org.http4s.client.Client
 import org.http4s.client.okhttp.OkHttpBuilder
@@ -37,7 +35,7 @@ import org.scalasteward.core.nurture.{NurtureAlg, PullRequestData, PullRequestRe
 import org.scalasteward.core.persistence.{CachingKeyValueStore, JsonKeyValueStore}
 import org.scalasteward.core.repocache._
 import org.scalasteward.core.repoconfig.RepoConfigAlg
-import org.scalasteward.core.scalafix.{MigrationAlg, MigrationsLoader}
+import org.scalasteward.core.edit.scalafix.{ScalafixMigrationsFinder, ScalafixMigrationsLoader}
 import org.scalasteward.core.scalafmt.ScalafmtAlg
 import org.scalasteward.core.update.{ArtifactMigrations, FilterAlg, PruningAlg, UpdateAlg}
 import org.scalasteward.core.util._
@@ -45,6 +43,8 @@ import org.scalasteward.core.util.uri._
 import org.scalasteward.core.vcs.data.Repo
 import org.scalasteward.core.vcs.github.{GitHubAppApiAlg, GitHubAuthAlg}
 import org.scalasteward.core.vcs.{VCSApiAlg, VCSExtraAlg, VCSRepoAlg, VCSSelection}
+import org.typelevel.log4cats.Logger
+import org.typelevel.log4cats.slf4j.Slf4jLogger
 
 final class Context[F[_]](implicit
     val buildToolDispatcher: BuildToolDispatcher[F],
@@ -57,13 +57,13 @@ final class Context[F[_]](implicit
     val hookExecutor: HookExecutor[F],
     val logger: Logger[F],
     val mavenAlg: MavenAlg[F],
-    val migrationAlg: MigrationAlg,
-    val migrationsLoader: MigrationsLoader[F],
     val millAlg: MillAlg[F],
     val pruningAlg: PruningAlg[F],
     val pullRequestRepository: PullRequestRepository[F],
     val repoConfigAlg: RepoConfigAlg[F],
     val sbtAlg: SbtAlg[F],
+    val scalafixMigrationsFinder: ScalafixMigrationsFinder,
+    val scalafixMigrationsLoader: ScalafixMigrationsLoader[F],
     val scalafmtAlg: ScalafmtAlg[F],
     val stewardAlg: StewardAlg[F],
     val updateAlg: UpdateAlg[F],
@@ -103,9 +103,10 @@ object Context {
       _ <- printBanner[F]
       vcsUser <- config.vcsUser[F]
       implicit0(artifactMigration: ArtifactMigrations) <- ArtifactMigrations.create[F](config)
-      implicit0(migrationsLoader: MigrationsLoader[F]) = new MigrationsLoader[F]
-      implicit0(migrationAlg: MigrationAlg) <-
-        migrationsLoader.loadAll(config.scalafixCfg).map(new MigrationAlg(_))
+      implicit0(scalafixMigrationsLoader: ScalafixMigrationsLoader[F]) =
+        new ScalafixMigrationsLoader[F]
+      implicit0(scalafixMigrationsFinder: ScalafixMigrationsFinder) <-
+        scalafixMigrationsLoader.createFinder(config.scalafixCfg)
       implicit0(urlChecker: UrlChecker[F]) <- UrlChecker.create[F](config)
       kvsPrefix = Some(config.vcsType.asString)
       pullRequestsStore <- JsonKeyValueStore
diff --git a/modules/core/src/main/scala/org/scalasteward/core/buildtool/BuildToolAlg.scala b/modules/core/src/main/scala/org/scalasteward/core/buildtool/BuildToolAlg.scala
index 7a601f3f..e6b5f668 100644
--- a/modules/core/src/main/scala/org/scalasteward/core/buildtool/BuildToolAlg.scala
+++ b/modules/core/src/main/scala/org/scalasteward/core/buildtool/BuildToolAlg.scala
@@ -17,12 +17,12 @@
 package org.scalasteward.core.buildtool
 
 import org.scalasteward.core.data.Scope
-import org.scalasteward.core.scalafix.Migration
+import org.scalasteward.core.edit.scalafix.ScalafixMigration
 
 trait BuildToolAlg[F[_], R] {
   def containsBuild(r: R): F[Boolean]
 
   def getDependencies(r: R): F[List[Scope.Dependencies]]
 
-  def runMigration(r: R, migration: Migration): F[Unit]
+  def runMigration(r: R, migration: ScalafixMigration): F[Unit]
 }
diff --git a/modules/core/src/main/scala/org/scalasteward/core/buildtool/BuildToolDispatcher.scala b/modules/core/src/main/scala/org/scalasteward/core/buildtool/BuildToolDispatcher.scala
index d83a31c2..d8107fd3 100644
--- a/modules/core/src/main/scala/org/scalasteward/core/buildtool/BuildToolDispatcher.scala
+++ b/modules/core/src/main/scala/org/scalasteward/core/buildtool/BuildToolDispatcher.scala
@@ -22,7 +22,7 @@ import org.scalasteward.core.buildtool.maven.MavenAlg
 import org.scalasteward.core.buildtool.mill.MillAlg
 import org.scalasteward.core.buildtool.sbt.SbtAlg
 import org.scalasteward.core.data.{Resolver, Scope}
-import org.scalasteward.core.scalafix.Migration
+import org.scalasteward.core.edit.scalafix.ScalafixMigration
 import org.scalasteward.core.scalafmt.ScalafmtAlg
 import org.scalasteward.core.vcs.data.Repo
 import org.scalasteward.core.repoconfig.RepoConfigAlg
@@ -69,7 +69,7 @@ object BuildToolDispatcher {
           )
         } yield result
 
-      override def runMigration(repo: Repo, migration: Migration): F[Unit] =
+      override def runMigration(repo: Repo, migration: ScalafixMigration): F[Unit] =
         buildRootsForRepo(repo).flatMap(buildRoots =>
           buildRoots.traverse_(buildRoot =>
             foundBuildTools(buildRoot).flatMap(_.traverse_(_.runMigration(buildRoot, migration)))
diff --git a/modules/core/src/main/scala/org/scalasteward/core/buildtool/maven/MavenAlg.scala b/modules/core/src/main/scala/org/scalasteward/core/buildtool/maven/MavenAlg.scala
index 37bb1e56..10c05065 100644
--- a/modules/core/src/main/scala/org/scalasteward/core/buildtool/maven/MavenAlg.scala
+++ b/modules/core/src/main/scala/org/scalasteward/core/buildtool/maven/MavenAlg.scala
@@ -23,7 +23,7 @@ import org.scalasteward.core.application.Config
 import org.scalasteward.core.buildtool.BuildToolAlg
 import org.scalasteward.core.data._
 import org.scalasteward.core.io.{FileAlg, ProcessAlg, WorkspaceAlg}
-import org.scalasteward.core.scalafix.Migration
+import org.scalasteward.core.edit.scalafix.ScalafixMigration
 import org.scalasteward.core.util.Nel
 import org.scalasteward.core.vcs.data.BuildRoot
 
@@ -57,7 +57,7 @@ object MavenAlg {
           resolvers = parser.parseResolvers(repositoriesRaw).distinct
         } yield List(Scope(dependencies, resolvers))
 
-      override def runMigration(buildRoot: BuildRoot, migration: Migration): F[Unit] =
+      override def runMigration(buildRoot: BuildRoot, migration: ScalafixMigration): F[Unit] =
         F.unit
 
       def exec(command: Nel[String], repoDir: File): F[List[String]] =
diff --git a/modules/core/src/main/scala/org/scalasteward/core/buildtool/mill/MillAlg.scala b/modules/core/src/main/scala/org/scalasteward/core/buildtool/mill/MillAlg.scala
index e5a19595..2a1bddae 100644
--- a/modules/core/src/main/scala/org/scalasteward/core/buildtool/mill/MillAlg.scala
+++ b/modules/core/src/main/scala/org/scalasteward/core/buildtool/mill/MillAlg.scala
@@ -23,7 +23,7 @@ import org.scalasteward.core.buildtool.BuildToolAlg
 import org.scalasteward.core.data.Scope
 import org.scalasteward.core.data.Scope.Dependencies
 import org.scalasteward.core.io.{FileAlg, ProcessAlg, WorkspaceAlg}
-import org.scalasteward.core.scalafix.Migration
+import org.scalasteward.core.edit.scalafix.ScalafixMigration
 import org.scalasteward.core.util.Nel
 import org.scalasteward.core.vcs.data.BuildRoot
 
@@ -67,6 +67,7 @@ object MillAlg {
           )
         } yield parsed.map(module => Scope(module.dependencies, module.repositories))
 
-      override def runMigration(buildRoot: BuildRoot, migration: Migration): F[Unit] = F.unit
+      override def runMigration(buildRoot: BuildRoot, migration: ScalafixMigration): F[Unit] =
+        F.unit
     }
 }
diff --git a/modules/core/src/main/scala/org/scalasteward/core/buildtool/sbt/SbtAlg.scala b/modules/core/src/main/scala/org/scalasteward/core/buildtool/sbt/SbtAlg.scala
index 34d9a1c9..5d3ec704 100644
--- a/modules/core/src/main/scala/org/scalasteward/core/buildtool/sbt/SbtAlg.scala
+++ b/modules/core/src/main/scala/org/scalasteward/core/buildtool/sbt/SbtAlg.scala
@@ -28,7 +28,7 @@ import org.scalasteward.core.buildtool.sbt.command._
 import org.scalasteward.core.buildtool.sbt.data.SbtVersion
 import org.scalasteward.core.data.{Dependency, Resolver, Scope}
 import org.scalasteward.core.io.{FileAlg, FileData, ProcessAlg, WorkspaceAlg}
-import org.scalasteward.core.scalafix.Migration
+import org.scalasteward.core.edit.scalafix.ScalafixMigration
 import org.scalasteward.core.util.Nel
 import org.scalasteward.core.vcs.data.BuildRoot
 
@@ -89,7 +89,7 @@ object SbtAlg {
           additionalDependencies <- getAdditionalDependencies(buildRoot)
         } yield additionalDependencies ::: dependencies
 
-      override def runMigration(buildRoot: BuildRoot, migration: Migration): F[Unit] =
+      override def runMigration(buildRoot: BuildRoot, migration: ScalafixMigration): F[Unit] =
         addGlobalPluginTemporarily(scalaStewardScalafixSbt) {
           workspaceAlg.buildRootDir(buildRoot).flatMap { buildRootDir =>
             val withScalacOptions =
diff --git a/modules/core/src/main/scala/org/scalasteward/core/edit/EditAlg.scala b/modules/core/src/main/scala/org/scalasteward/core/edit/EditAlg.scala
index 2a33d6db..8022bd8b 100644
--- a/modules/core/src/main/scala/org/scalasteward/core/edit/EditAlg.scala
+++ b/modules/core/src/main/scala/org/scalasteward/core/edit/EditAlg.scala
@@ -28,7 +28,7 @@ import org.scalasteward.core.git
 import org.scalasteward.core.git.{Commit, GitAlg}
 import org.scalasteward.core.io.{isSourceFile, FileAlg, WorkspaceAlg}
 import org.scalasteward.core.repoconfig.RepoConfig
-import org.scalasteward.core.scalafix.{Migration, MigrationAlg}
+import org.scalasteward.core.edit.scalafix.{ScalafixMigration, ScalafixMigrationsFinder}
 import org.scalasteward.core.util._
 import org.scalasteward.core.util.logger._
 import org.scalasteward.core.vcs.data.Repo
@@ -39,7 +39,7 @@ final class EditAlg[F[_]](implicit
     gitAlg: GitAlg[F],
     hookExecutor: HookExecutor[F],
     logger: Logger[F],
-    migrationAlg: MigrationAlg,
+    scalafixMigrationsFinder: ScalafixMigrationsFinder,
     streamCompiler: Stream.Compiler[F, F],
     workspaceAlg: WorkspaceAlg[F],
     F: MonadThrow[F]
@@ -59,7 +59,7 @@ final class EditAlg[F[_]](implicit
           case true =>
             for {
               _ <- preCommit
-              migrations = migrationAlg.findMigrations(update)
+              migrations = scalafixMigrationsFinder.findMigrations(update)
               cs1 <-
                 if (migrations.isEmpty) F.pure(Nil)
                 else
@@ -82,10 +82,13 @@ final class EditAlg[F[_]](implicit
       fileAlg.findFiles(repoDir, fileFilter, _.contains(update.currentVersion)).map(Nel.fromList)
     }
 
-  private def runScalafixMigrations(repo: Repo, migrations: List[Migration]): F[List[Commit]] =
+  private def runScalafixMigrations(
+      repo: Repo,
+      migrations: List[ScalafixMigration]
+  ): F[List[Commit]] =
     migrations.traverseFilter(runScalafixMigration(repo, _))
 
-  private def runScalafixMigration(repo: Repo, migration: Migration): F[Option[Commit]] =
+  private def runScalafixMigration(repo: Repo, migration: ScalafixMigration): F[Option[Commit]] =
     for {
       _ <- logger.info(s"Running migration $migration")
       result <- logger.attemptLogWarn("Scalafix migration failed")(
diff --git a/modules/core/src/main/scala/org/scalasteward/core/edit/hooks/HookExecutor.scala b/modules/core/src/main/scala/org/scalasteward/core/edit/hooks/HookExecutor.scala
index 436dbbae..7d938064 100644
--- a/modules/core/src/main/scala/org/scalasteward/core/edit/hooks/HookExecutor.scala
+++ b/modules/core/src/main/scala/org/scalasteward/core/edit/hooks/HookExecutor.scala
@@ -18,15 +18,15 @@ package org.scalasteward.core.edit.hooks
 
 import cats.MonadThrow
 import cats.syntax.all._
-import org.typelevel.log4cats.Logger
 import org.scalasteward.core.data.{ArtifactId, GroupId, Update}
 import org.scalasteward.core.git.{Commit, GitAlg}
 import org.scalasteward.core.io.{ProcessAlg, WorkspaceAlg}
 import org.scalasteward.core.repoconfig.RepoConfig
 import org.scalasteward.core.scalafmt.{scalafmtArtifactId, scalafmtBinary, scalafmtGroupId}
-import org.scalasteward.core.util.logger._
 import org.scalasteward.core.util.Nel
+import org.scalasteward.core.util.logger._
 import org.scalasteward.core.vcs.data.Repo
+import org.typelevel.log4cats.Logger
 
 final class HookExecutor[F[_]](implicit
     gitAlg: GitAlg[F],
diff --git a/modules/core/src/main/scala/org/scalasteward/core/scalafix/Migration.scala b/modules/core/src/main/scala/org/scalasteward/core/edit/scalafix/ScalafixMigration.scala
similarity index 81%
rename from modules/core/src/main/scala/org/scalasteward/core/scalafix/Migration.scala
rename to modules/core/src/main/scala/org/scalasteward/core/edit/scalafix/ScalafixMigration.scala
index 856ce437..e0e136ba 100644
--- a/modules/core/src/main/scala/org/scalasteward/core/scalafix/Migration.scala
+++ b/modules/core/src/main/scala/org/scalasteward/core/edit/scalafix/ScalafixMigration.scala
@@ -14,14 +14,14 @@
  * limitations under the License.
  */
 
-package org.scalasteward.core.scalafix
+package org.scalasteward.core.edit.scalafix
 
 import io.circe.Decoder
 import io.circe.generic.semiauto._
 import org.scalasteward.core.data.{GroupId, Version}
 import org.scalasteward.core.util.Nel
 
-final case class Migration(
+final case class ScalafixMigration(
     groupId: GroupId,
     artifactIds: Nel[String],
     newVersion: Version,
@@ -30,7 +30,7 @@ final case class Migration(
     scalacOptions: Option[Nel[String]]
 )
 
-object Migration {
-  implicit val migrationDecoder: Decoder[Migration] =
-    deriveDecoder[Migration]
+object ScalafixMigration {
+  implicit val scalafixMigrationDecoder: Decoder[ScalafixMigration] =
+    deriveDecoder[ScalafixMigration]
 }
diff --git a/modules/core/src/main/scala/org/scalasteward/core/scalafix/ScalafixMigrations.scala b/modules/core/src/main/scala/org/scalasteward/core/edit/scalafix/ScalafixMigrations.scala
similarity index 91%
rename from modules/core/src/main/scala/org/scalasteward/core/scalafix/ScalafixMigrations.scala
rename to modules/core/src/main/scala/org/scalasteward/core/edit/scalafix/ScalafixMigrations.scala
index 997adbc6..58b60a31 100644
--- a/modules/core/src/main/scala/org/scalasteward/core/scalafix/ScalafixMigrations.scala
+++ b/modules/core/src/main/scala/org/scalasteward/core/edit/scalafix/ScalafixMigrations.scala
@@ -14,14 +14,14 @@
  * limitations under the License.
  */
 
-package org.scalasteward.core.scalafix
+package org.scalasteward.core.edit.scalafix
 
 import io.circe.Decoder
 import io.circe.generic.extras.Configuration
 import io.circe.generic.extras.semiauto._
 
 final case class ScalafixMigrations(
-    migrations: List[Migration] = List.empty
+    migrations: List[ScalafixMigration] = List.empty
 )
 
 object ScalafixMigrations {
diff --git a/modules/core/src/main/scala/org/scalasteward/core/scalafix/MigrationAlg.scala b/modules/core/src/main/scala/org/scalasteward/core/edit/scalafix/ScalafixMigrationsFinder.scala
similarity index 80%
rename from modules/core/src/main/scala/org/scalasteward/core/scalafix/MigrationAlg.scala
rename to modules/core/src/main/scala/org/scalasteward/core/edit/scalafix/ScalafixMigrationsFinder.scala
index bf361fd2..5eef38b4 100644
--- a/modules/core/src/main/scala/org/scalasteward/core/scalafix/MigrationAlg.scala
+++ b/modules/core/src/main/scala/org/scalasteward/core/edit/scalafix/ScalafixMigrationsFinder.scala
@@ -14,19 +14,19 @@
  * limitations under the License.
  */
 
-package org.scalasteward.core.scalafix
+package org.scalasteward.core.edit.scalafix
 
 import cats.syntax.all._
 import org.scalasteward.core.data.{Update, Version}
 
-final class MigrationAlg(migrations: List[Migration]) {
-  def findMigrations(update: Update): List[Migration] =
+final class ScalafixMigrationsFinder(migrations: List[ScalafixMigration]) {
+  def findMigrations(update: Update): List[ScalafixMigration] =
     migrations.filter { migration =>
       update.groupId === migration.groupId &&
       migration.artifactIds.exists { re =>
         update.artifactIds.exists(artifactId => re.r.findFirstIn(artifactId.name).isDefined)
       } &&
       Version(update.currentVersion) < migration.newVersion &&
-      Version(update.newerVersions.head) >= migration.newVersion
+      Version(update.nextVersion) >= migration.newVersion
     }
 }
diff --git a/modules/core/src/main/scala/org/scalasteward/core/scalafix/MigrationsLoader.scala b/modules/core/src/main/scala/org/scalasteward/core/edit/scalafix/ScalafixMigrationsLoader.scala
similarity index 79%
rename from modules/core/src/main/scala/org/scalasteward/core/scalafix/MigrationsLoader.scala
rename to modules/core/src/main/scala/org/scalasteward/core/edit/scalafix/ScalafixMigrationsLoader.scala
index 686ab4d9..a4d981ed 100644
--- a/modules/core/src/main/scala/org/scalasteward/core/scalafix/MigrationsLoader.scala
+++ b/modules/core/src/main/scala/org/scalasteward/core/edit/scalafix/ScalafixMigrationsLoader.scala
@@ -14,24 +14,27 @@
  * limitations under the License.
  */
 
-package org.scalasteward.core.scalafix
+package org.scalasteward.core.edit.scalafix
 
 import cats.MonadThrow
 import cats.syntax.all._
-import org.typelevel.log4cats.Logger
 import io.circe.config.parser.decode
 import org.http4s.Uri
 import org.http4s.implicits.http4sLiteralsSyntax
 import org.scalasteward.core.application.Config.ScalafixCfg
+import org.scalasteward.core.edit.scalafix.ScalafixMigrationsLoader._
 import org.scalasteward.core.io.FileAlg
-import org.scalasteward.core.scalafix.MigrationsLoader._
+import org.typelevel.log4cats.Logger
 
-final class MigrationsLoader[F[_]](implicit
+final class ScalafixMigrationsLoader[F[_]](implicit
     fileAlg: FileAlg[F],
     logger: Logger[F],
     F: MonadThrow[F]
 ) {
-  def loadAll(config: ScalafixCfg): F[List[Migration]] = {
+  def createFinder(config: ScalafixCfg): F[ScalafixMigrationsFinder] =
+    loadAll(config).map(new ScalafixMigrationsFinder(_))
+
+  def loadAll(config: ScalafixCfg): F[List[ScalafixMigration]] = {
     val maybeDefaultMigrationsUrl =
       Option.unless(config.disableDefaults)(defaultScalafixMigrationsUrl)
     (maybeDefaultMigrationsUrl.toList ++ config.migrations)
@@ -39,7 +42,7 @@ final class MigrationsLoader[F[_]](implicit
       .flatTap(migrations => logger.info(s"Loaded ${migrations.size} Scalafix migrations"))
   }
 
-  private def loadMigrations(uri: Uri): F[List[Migration]] =
+  private def loadMigrations(uri: Uri): F[List[ScalafixMigration]] =
     logger.debug(s"Loading Scalafix migrations from $uri") >>
       fileAlg.readUri(uri).flatMap(decodeMigrations(_, uri)).map(_.migrations)
 
@@ -48,7 +51,7 @@ final class MigrationsLoader[F[_]](implicit
       .adaptErr(new Throwable(s"Failed to load Scalafix migrations from ${uri.renderString}", _))
 }
 
-object MigrationsLoader {
+object ScalafixMigrationsLoader {
   val defaultScalafixMigrationsUrl: Uri =
     uri"https://raw.githubusercontent.com/scala-steward-org/scala-steward/master/modules/core/src/main/resources/scalafix-migrations.conf"
 }
diff --git a/modules/core/src/main/scala/org/scalasteward/core/io/FileAlg.scala b/modules/core/src/main/scala/org/scalasteward/core/io/FileAlg.scala
index 44224b81..5f90e894 100644
--- a/modules/core/src/main/scala/org/scalasteward/core/io/FileAlg.scala
+++ b/modules/core/src/main/scala/org/scalasteward/core/io/FileAlg.scala
@@ -17,15 +17,14 @@
 package org.scalasteward.core.io
 
 import better.files.File
-import cats.MonadThrow
 import cats.effect.{Bracket, Resource, Sync}
 import cats.syntax.all._
-import cats.{Functor, Traverse}
+import cats.{Functor, MonadThrow, Traverse}
 import fs2.Stream
-import org.typelevel.log4cats.Logger
 import org.apache.commons.io.FileUtils
 import org.http4s.Uri
 import org.http4s.implicits.http4sLiteralsSyntax
+import org.typelevel.log4cats.Logger
 import scala.io.Source
 
 trait FileAlg[F[_]] {
diff --git a/modules/core/src/main/scala/org/scalasteward/core/io/ProcessAlg.scala b/modules/core/src/main/scala/org/scalasteward/core/io/ProcessAlg.scala
index a0ec14ed..7fde2386 100644
--- a/modules/core/src/main/scala/org/scalasteward/core/io/ProcessAlg.scala
+++ b/modules/core/src/main/scala/org/scalasteward/core/io/ProcessAlg.scala
@@ -19,10 +19,10 @@ package org.scalasteward.core.io
 import better.files.File
 import cats.effect.{Blocker, Concurrent, ContextShift, Timer}
 import cats.syntax.all._
-import org.typelevel.log4cats.Logger
 import org.scalasteward.core.application.Config.ProcessCfg
 import org.scalasteward.core.io.process.Args
 import org.scalasteward.core.util.Nel
+import org.typelevel.log4cats.Logger
 
 trait ProcessAlg[F[_]] {
   def exec(
diff --git a/modules/core/src/main/scala/org/scalasteward/core/io/WorkspaceAlg.scala b/modules/core/src/main/scala/org/scalasteward/core/io/WorkspaceAlg.scala
index b2807d61..498de3d0 100644
--- a/modules/core/src/main/scala/org/scalasteward/core/io/WorkspaceAlg.scala
+++ b/modules/core/src/main/scala/org/scalasteward/core/io/WorkspaceAlg.scala
@@ -19,9 +19,9 @@ package org.scalasteward.core.io
 import better.files.File
 import cats.FlatMap
 import cats.syntax.all._
-import org.typelevel.log4cats.Logger
 import org.scalasteward.core.application.Config
 import org.scalasteward.core.vcs.data.{BuildRoot, Repo}
+import org.typelevel.log4cats.Logger
 
 trait WorkspaceAlg[F[_]] {
   def cleanWorkspace: F[Unit]
diff --git a/modules/core/src/main/scala/org/scalasteward/core/nurture/NurtureAlg.scala b/modules/core/src/main/scala/org/scalasteward/core/nurture/NurtureAlg.scala
index 7d282627..1d0f61b1 100644
--- a/modules/core/src/main/scala/org/scalasteward/core/nurture/NurtureAlg.scala
+++ b/modules/core/src/main/scala/org/scalasteward/core/nurture/NurtureAlg.scala
@@ -30,7 +30,7 @@ import org.scalasteward.core.data._
 import org.scalasteward.core.edit.EditAlg
 import org.scalasteward.core.git.{Branch, Commit, GitAlg}
 import org.scalasteward.core.repoconfig.PullRequestUpdateStrategy
-import org.scalasteward.core.scalafix.MigrationAlg
+import org.scalasteward.core.edit.scalafix.ScalafixMigrationsFinder
 import org.scalasteward.core.util.UrlChecker
 import org.scalasteward.core.util.logger.LoggerOps
 import org.scalasteward.core.vcs.data._
@@ -42,8 +42,8 @@ final class NurtureAlg[F[_]](config: Config)(implicit
     editAlg: EditAlg[F],
     gitAlg: GitAlg[F],
     logger: Logger[F],
-    migrationAlg: MigrationAlg,
     pullRequestRepository: PullRequestRepository[F],
+    scalafixMigrationsFinder: ScalafixMigrationsFinder,
     vcsApiAlg: VCSApiAlg[F],
     vcsExtraAlg: VCSExtraAlg[F],
     vcsRepoAlg: VCSRepoAlg[F],
@@ -181,7 +181,7 @@ final class NurtureAlg[F[_]](config: Config)(implicit
           .traverse(vcsExtraAlg.getReleaseRelatedUrls(_, data.update))
       filesWithOldVersion <- gitAlg.findFilesContaining(data.repo, data.update.currentVersion)
       branchName = vcs.createBranch(config.vcsType, data.fork, data.update)
-      migrations = migrationAlg.findMigrations(data.update)
+      migrations = scalafixMigrationsFinder.findMigrations(data.update)
       requestData = NewPullRequestData.from(
         data,
         branchName,
diff --git a/modules/core/src/main/scala/org/scalasteward/core/vcs/VCSApiAlg.scala b/modules/core/src/main/scala/org/scalasteward/core/vcs/VCSApiAlg.scala
index 1757c2d1..0abc9ffe 100644
--- a/modules/core/src/main/scala/org/scalasteward/core/vcs/VCSApiAlg.scala
+++ b/modules/core/src/main/scala/org/scalasteward/core/vcs/VCSApiAlg.scala
@@ -16,8 +16,8 @@
 
 package org.scalasteward.core.vcs
 
-import cats.{ApplicativeThrow, MonadThrow}
 import cats.syntax.all._
+import cats.{ApplicativeThrow, MonadThrow}
 import org.scalasteward.core.git.Branch
 import org.scalasteward.core.vcs.data._
 
diff --git a/modules/core/src/main/scala/org/scalasteward/core/vcs/VCSRepoAlg.scala b/modules/core/src/main/scala/org/scalasteward/core/vcs/VCSRepoAlg.scala
index c6ca9ffe..e7448dd6 100644
--- a/modules/core/src/main/scala/org/scalasteward/core/vcs/VCSRepoAlg.scala
+++ b/modules/core/src/main/scala/org/scalasteward/core/vcs/VCSRepoAlg.scala
@@ -18,7 +18,6 @@ package org.scalasteward.core.vcs
 
 import cats.MonadThrow
 import cats.syntax.all._
-import org.typelevel.log4cats.Logger
 import org.http4s.Uri
 import org.http4s.Uri.UserInfo
 import org.scalasteward.core.application.Config
@@ -26,6 +25,7 @@ import org.scalasteward.core.git.GitAlg
 import org.scalasteward.core.util
 import org.scalasteward.core.util.logger._
 import org.scalasteward.core.vcs.data.{Repo, RepoOut}
+import org.typelevel.log4cats.Logger
 
 final class VCSRepoAlg[F[_]](config: Config)(implicit
     gitAlg: GitAlg[F],
diff --git a/modules/core/src/main/scala/org/scalasteward/core/vcs/VCSSelection.scala b/modules/core/src/main/scala/org/scalasteward/core/vcs/VCSSelection.scala
index ab1feea1..36aa64c3 100644
--- a/modules/core/src/main/scala/org/scalasteward/core/vcs/VCSSelection.scala
+++ b/modules/core/src/main/scala/org/scalasteward/core/vcs/VCSSelection.scala
@@ -17,7 +17,6 @@
 package org.scalasteward.core.vcs
 
 import cats.MonadThrow
-import org.typelevel.log4cats.Logger
 import org.http4s.Header
 import org.scalasteward.core.application.Config
 import org.scalasteward.core.util.HttpJsonClient
@@ -27,6 +26,7 @@ import org.scalasteward.core.vcs.bitbucketserver.BitbucketServerApiAlg
 import org.scalasteward.core.vcs.data.AuthenticatedUser
 import org.scalasteward.core.vcs.github.GitHubApiAlg
 import org.scalasteward.core.vcs.gitlab.GitLabApiAlg
+import org.typelevel.log4cats.Logger
 
 final class VCSSelection[F[_]](config: Config, user: AuthenticatedUser)(implicit
     client: HttpJsonClient[F],
diff --git a/modules/core/src/main/scala/org/scalasteward/core/vcs/data/NewPullRequestData.scala b/modules/core/src/main/scala/org/scalasteward/core/vcs/data/NewPullRequestData.scala
index bcef2371..88e6a4e4 100644
--- a/modules/core/src/main/scala/org/scalasteward/core/vcs/data/NewPullRequestData.scala
+++ b/modules/core/src/main/scala/org/scalasteward/core/vcs/data/NewPullRequestData.scala
@@ -20,11 +20,11 @@ import cats.syntax.all._
 import io.circe.Encoder
 import io.circe.generic.semiauto._
 import org.http4s.Uri
-import org.scalasteward.core.data.{GroupId, ReleaseRelatedUrl, SemVer, Update, UpdateData}
+import org.scalasteward.core.data._
+import org.scalasteward.core.edit.scalafix.ScalafixMigration
 import org.scalasteward.core.git
 import org.scalasteward.core.git.Branch
 import org.scalasteward.core.repoconfig.{IncludeScalaStrategy, RepoConfigAlg}
-import org.scalasteward.core.scalafix.Migration
 import org.scalasteward.core.update.FilterAlg
 import org.scalasteward.core.util.Details
 
@@ -51,7 +51,7 @@ object NewPullRequestData {
       update: Update,
       artifactIdToUrl: Map[String, Uri],
       releaseRelatedUrls: List[ReleaseRelatedUrl],
-      migrations: List[Migration],
+      migrations: List[ScalafixMigration],
       filesWithOldVersion: List[String]
   ): String = {
     val artifacts = artifactsWithOptionalUrl(update, artifactIdToUrl)
@@ -164,7 +164,7 @@ object NewPullRequestData {
           |""".stripMargin.trim
     )
 
-  def migrationNote(migrations: List[Migration]): (Option[String], Option[Details]) =
+  def migrationNote(migrations: List[ScalafixMigration]): (Option[String], Option[Details]) =
     if (migrations.isEmpty) (None, None)
     else {
       val ruleList =
@@ -198,7 +198,7 @@ object NewPullRequestData {
       branchName: String,
       artifactIdToUrl: Map[String, Uri] = Map.empty,
       releaseRelatedUrls: List[ReleaseRelatedUrl] = List.empty,
-      migrations: List[Migration] = List.empty,
+      migrations: List[ScalafixMigration] = List.empty,
       filesWithOldVersion: List[String] = List.empty
   ): NewPullRequestData =
     NewPullRequestData(
diff --git a/modules/core/src/main/scala/org/scalasteward/core/vcs/github/GitHubAuthAlg.scala b/modules/core/src/main/scala/org/scalasteward/core/vcs/github/GitHubAuthAlg.scala
index 30328233..7a662ec8 100644
--- a/modules/core/src/main/scala/org/scalasteward/core/vcs/github/GitHubAuthAlg.scala
+++ b/modules/core/src/main/scala/org/scalasteward/core/vcs/github/GitHubAuthAlg.scala
@@ -16,14 +16,13 @@
 
 package org.scalasteward.core.vcs.github
 
-import java.io.FileReader
-import java.security.{KeyFactory, PrivateKey, Security}
-import java.security.spec.PKCS8EncodedKeySpec
-import java.util.Date
-
 import better.files.File
 import cats.effect.Sync
 import io.jsonwebtoken.{Jwts, SignatureAlgorithm}
+import java.io.FileReader
+import java.security.spec.PKCS8EncodedKeySpec
+import java.security.{KeyFactory, PrivateKey, Security}
+import java.util.Date
 import org.bouncycastle.jce.provider.BouncyCastleProvider
 import org.bouncycastle.util.io.pem.PemReader
 import scala.concurrent.duration.FiniteDuration
diff --git a/modules/core/src/main/scala/org/scalasteward/core/vcs/gitlab/GitLabApiAlg.scala b/modules/core/src/main/scala/org/scalasteward/core/vcs/gitlab/GitLabApiAlg.scala
index e2c43ca0..b8922cf1 100644
--- a/modules/core/src/main/scala/org/scalasteward/core/vcs/gitlab/GitLabApiAlg.scala
+++ b/modules/core/src/main/scala/org/scalasteward/core/vcs/gitlab/GitLabApiAlg.scala
@@ -18,7 +18,6 @@ package org.scalasteward.core.vcs.gitlab
 
 import cats.MonadThrow
 import cats.syntax.all._
-import org.typelevel.log4cats.Logger
 import io.circe._
 import io.circe.generic.semiauto._
 import io.circe.syntax._
@@ -29,6 +28,7 @@ import org.scalasteward.core.util.uri.uriDecoder
 import org.scalasteward.core.util.{HttpJsonClient, UnexpectedResponse}
 import org.scalasteward.core.vcs.VCSApiAlg
 import org.scalasteward.core.vcs.data._
+import org.typelevel.log4cats.Logger
 
 final private[gitlab] case class ForkPayload(id: String, namespace: String)
 final private[gitlab] case class MergeRequestPayload(


Test patch:
diff --git a/modules/core/src/test/scala/org/scalasteward/core/TestInstances.scala b/modules/core/src/test/scala/org/scalasteward/core/TestInstances.scala
index 1bda0cd4..3e18ba23 100644
--- a/modules/core/src/test/scala/org/scalasteward/core/TestInstances.scala
+++ b/modules/core/src/test/scala/org/scalasteward/core/TestInstances.scala
@@ -8,7 +8,7 @@ import eu.timepit.refined.types.numeric.NonNegInt
 import org.scalacheck.{Arbitrary, Cogen, Gen}
 import org.scalasteward.core.TestSyntax._
 import org.scalasteward.core.data.Update.Single
-import org.scalasteward.core.data.{GroupId, Resolver, Scope, Update, Version}
+import org.scalasteward.core.data._
 import org.scalasteward.core.git.Sha1
 import org.scalasteward.core.git.Sha1.HexString
 import org.scalasteward.core.repocache.RepoCache
diff --git a/modules/core/src/test/scala/org/scalasteward/core/buildtool/sbt/SbtAlgTest.scala b/modules/core/src/test/scala/org/scalasteward/core/buildtool/sbt/SbtAlgTest.scala
index 7acaeabd..975cb77a 100644
--- a/modules/core/src/test/scala/org/scalasteward/core/buildtool/sbt/SbtAlgTest.scala
+++ b/modules/core/src/test/scala/org/scalasteward/core/buildtool/sbt/SbtAlgTest.scala
@@ -4,11 +4,11 @@ import cats.data.StateT
 import munit.FunSuite
 import org.scalasteward.core.buildtool.sbt.command._
 import org.scalasteward.core.data.{GroupId, Version}
+import org.scalasteward.core.edit.scalafix.ScalafixMigration
 import org.scalasteward.core.mock.MockContext.context.sbtAlg
 import org.scalasteward.core.mock.MockContext.{config, mockRoot}
 import org.scalasteward.core.mock.MockState
 import org.scalasteward.core.mock.MockState.TraceEntry.{Cmd, Log}
-import org.scalasteward.core.scalafix.Migration
 import org.scalasteward.core.util.Nel
 import org.scalasteward.core.vcs.data.{BuildRoot, Repo}
 
@@ -64,7 +64,7 @@ class SbtAlgTest extends FunSuite {
     val repo = Repo("fthomas", "scala-steward")
     val buildRoot = BuildRoot(repo, ".")
     val repoDir = config.workspace / repo.show
-    val migration = Migration(
+    val migration = ScalafixMigration(
       GroupId("co.fs2"),
       Nel.of("fs2-core"),
       Version("1.0.0"),
@@ -101,7 +101,7 @@ class SbtAlgTest extends FunSuite {
     val repo = Repo("fthomas", "scala-steward")
     val buildRoot = BuildRoot(repo, ".")
     val repoDir = config.workspace / repo.show
-    val migration = Migration(
+    val migration = ScalafixMigration(
       GroupId("org.typelevel"),
       Nel.of("cats-core"),
       Version("2.2.0"),
diff --git a/modules/core/src/test/scala/org/scalasteward/core/scalafix/MigrationAlgTest.scala b/modules/core/src/test/scala/org/scalasteward/core/edit/scalafix/ScalafixMigrationsFinderTest.scala
similarity index 71%
rename from modules/core/src/test/scala/org/scalasteward/core/scalafix/MigrationAlgTest.scala
rename to modules/core/src/test/scala/org/scalasteward/core/edit/scalafix/ScalafixMigrationsFinderTest.scala
index bb8b7e84..2b22f7d8 100644
--- a/modules/core/src/test/scala/org/scalasteward/core/scalafix/MigrationAlgTest.scala
+++ b/modules/core/src/test/scala/org/scalasteward/core/edit/scalafix/ScalafixMigrationsFinderTest.scala
@@ -1,17 +1,17 @@
-package org.scalasteward.core.scalafix
+package org.scalasteward.core.edit.scalafix
 
 import munit.FunSuite
 import org.scalasteward.core.TestSyntax._
 import org.scalasteward.core.data.{GroupId, Update, Version}
-import org.scalasteward.core.mock.MockContext.context.migrationAlg
+import org.scalasteward.core.mock.MockContext.context.scalafixMigrationsFinder
 import org.scalasteward.core.util.Nel
 
-class MigrationAlgTest extends FunSuite {
+class ScalafixMigrationsFinderTest extends FunSuite {
   test("findMigrations") {
     val update = Update.Single("org.typelevel" % "cats-core" % "2.1.0", Nel.of("2.2.0"))
-    val migrations = migrationAlg.findMigrations(update)
+    val migrations = scalafixMigrationsFinder.findMigrations(update)
     val expected = List(
-      Migration(
+      ScalafixMigration(
         GroupId("org.typelevel"),
         Nel.of("cats-core"),
         Version("2.2.0"),
diff --git a/modules/core/src/test/scala/org/scalasteward/core/scalafix/MigrationsLoaderTest.scala b/modules/core/src/test/scala/org/scalasteward/core/edit/scalafix/ScalafixMigrationsLoaderTest.scala
similarity index 79%
rename from modules/core/src/test/scala/org/scalasteward/core/scalafix/MigrationsLoaderTest.scala
rename to modules/core/src/test/scala/org/scalasteward/core/edit/scalafix/ScalafixMigrationsLoaderTest.scala
index 8eb2db5a..a0baf2cd 100644
--- a/modules/core/src/test/scala/org/scalasteward/core/scalafix/MigrationsLoaderTest.scala
+++ b/modules/core/src/test/scala/org/scalasteward/core/edit/scalafix/ScalafixMigrationsLoaderTest.scala
@@ -1,17 +1,17 @@
-package org.scalasteward.core.scalafix
+package org.scalasteward.core.edit.scalafix
 
 import munit.FunSuite
 import org.http4s.Uri
 import org.scalasteward.core.application.Config.ScalafixCfg
 import org.scalasteward.core.data.{GroupId, Version}
+import org.scalasteward.core.edit.scalafix.ScalafixMigrationsLoaderTest.mockState
 import org.scalasteward.core.io.FileAlgTest.ioFileAlg
-import org.scalasteward.core.mock.MockContext.context.migrationsLoader
+import org.scalasteward.core.mock.MockContext.context.scalafixMigrationsLoader
 import org.scalasteward.core.mock.MockContext.mockRoot
 import org.scalasteward.core.mock.MockState
-import org.scalasteward.core.scalafix.MigrationsLoaderTest.mockState
 import org.scalasteward.core.util.Nel
 
-class MigrationsLoaderTest extends FunSuite {
+class ScalafixMigrationsLoaderTest extends FunSuite {
   val migrationsUri: Uri = Uri.unsafeFromString(s"$mockRoot/extra-migrations.conf")
   val migrationsContent: String =
     """|migrations = [
@@ -23,7 +23,7 @@ class MigrationsLoaderTest extends FunSuite {
        |    doc: "https://scalacenter.github.io/scalafix/"
        |  }
        |]""".stripMargin
-  val migration: Migration = Migration(
+  val migration: ScalafixMigration = ScalafixMigration(
     GroupId("org.ice.cream"),
     Nel.of("yumyum-.*"),
     Version("1.0.0"),
@@ -33,7 +33,7 @@ class MigrationsLoaderTest extends FunSuite {
   )
 
   test("loadAll: without extra file, without defaults") {
-    val migrations = migrationsLoader
+    val migrations = scalafixMigrationsLoader
       .loadAll(ScalafixCfg(Nil, disableDefaults = true))
       .runA(mockState)
       .unsafeRunSync()
@@ -41,7 +41,7 @@ class MigrationsLoaderTest extends FunSuite {
   }
 
   test("loadAll: without extra file, with defaults") {
-    val migrations = migrationsLoader
+    val migrations = scalafixMigrationsLoader
       .loadAll(ScalafixCfg(Nil, disableDefaults = false))
       .runA(mockState)
       .unsafeRunSync()
@@ -50,7 +50,7 @@ class MigrationsLoaderTest extends FunSuite {
 
   test("loadAll: with extra file, without defaults") {
     val initialState = mockState.addUris(migrationsUri -> migrationsContent)
-    val migrations = migrationsLoader
+    val migrations = scalafixMigrationsLoader
       .loadAll(ScalafixCfg(List(migrationsUri), disableDefaults = true))
       .runA(initialState)
       .unsafeRunSync()
@@ -59,7 +59,7 @@ class MigrationsLoaderTest extends FunSuite {
 
   test("loadAll: with extra file, with defaults") {
     val initialState = mockState.addUris(migrationsUri -> migrationsContent)
-    val migrations = migrationsLoader
+    val migrations = scalafixMigrationsLoader
       .loadAll(ScalafixCfg(List(migrationsUri), disableDefaults = false))
       .runA(initialState)
       .unsafeRunSync()
@@ -69,7 +69,7 @@ class MigrationsLoaderTest extends FunSuite {
 
   test("loadAll: malformed extra file") {
     val initialState = mockState.addUris(migrationsUri -> """{"key": "i'm not a valid Migration}""")
-    val migrations = migrationsLoader
+    val migrations = scalafixMigrationsLoader
       .loadAll(ScalafixCfg(List(migrationsUri), disableDefaults = false))
       .runA(initialState)
       .attempt
@@ -78,9 +78,9 @@ class MigrationsLoaderTest extends FunSuite {
   }
 }
 
-object MigrationsLoaderTest {
+object ScalafixMigrationsLoaderTest {
   val mockState: MockState = MockState.empty.addUris(
-    MigrationsLoader.defaultScalafixMigrationsUrl ->
+    ScalafixMigrationsLoader.defaultScalafixMigrationsUrl ->
       ioFileAlg.readResource("scalafix-migrations.conf").unsafeRunSync()
   )
 }
diff --git a/modules/core/src/test/scala/org/scalasteward/core/io/MockWorkspaceAlg.scala b/modules/core/src/test/scala/org/scalasteward/core/io/MockWorkspaceAlg.scala
index 3bc619a0..912706e2 100644
--- a/modules/core/src/test/scala/org/scalasteward/core/io/MockWorkspaceAlg.scala
+++ b/modules/core/src/test/scala/org/scalasteward/core/io/MockWorkspaceAlg.scala
@@ -3,8 +3,7 @@ package org.scalasteward.core.io
 import better.files.File
 import cats.data.StateT
 import org.scalasteward.core.mock.{MockContext, MockEff}
-import org.scalasteward.core.vcs.data.Repo
-import org.scalasteward.core.vcs.data.BuildRoot
+import org.scalasteward.core.vcs.data.{BuildRoot, Repo}
 
 class MockWorkspaceAlg extends WorkspaceAlg[MockEff] {
   override def cleanWorkspace: MockEff[Unit] =
diff --git a/modules/core/src/test/scala/org/scalasteward/core/mock/MockContext.scala b/modules/core/src/test/scala/org/scalasteward/core/mock/MockContext.scala
index ce8124db..979e846e 100644
--- a/modules/core/src/test/scala/org/scalasteward/core/mock/MockContext.scala
+++ b/modules/core/src/test/scala/org/scalasteward/core/mock/MockContext.scala
@@ -3,16 +3,16 @@ package org.scalasteward.core.mock
 import better.files.File
 import cats.Parallel
 import cats.effect.{BracketThrow, Sync}
-import org.typelevel.log4cats.Logger
 import org.http4s.client.Client
 import org.http4s.{HttpApp, Uri}
 import org.scalasteward.core.TestInstances.ioContextShift
 import org.scalasteward.core.application.Cli.EnvVar
 import org.scalasteward.core.application.{Cli, Config, Context}
+import org.scalasteward.core.edit.scalafix.ScalafixMigrationsLoaderTest
 import org.scalasteward.core.io._
-import org.scalasteward.core.scalafix.MigrationsLoaderTest
 import org.scalasteward.core.vcs.VCSType
 import org.scalasteward.core.vcs.data.AuthenticatedUser
+import org.typelevel.log4cats.Logger
 import scala.concurrent.duration._
 
 object MockContext {
@@ -45,5 +45,5 @@ object MockContext {
   implicit private val workspaceAlg: WorkspaceAlg[MockEff] = new MockWorkspaceAlg
 
   val context: Context[MockEff] =
-    Context.step1[MockEff](config).runA(MigrationsLoaderTest.mockState).unsafeRunSync()
+    Context.step1[MockEff](config).runA(ScalafixMigrationsLoaderTest.mockState).unsafeRunSync()
 }
diff --git a/modules/core/src/test/scala/org/scalasteward/core/vcs/data/NewPullRequestDataTest.scala b/modules/core/src/test/scala/org/scalasteward/core/vcs/data/NewPullRequestDataTest.scala
index 49e5b25c..ef7d8c3b 100644
--- a/modules/core/src/test/scala/org/scalasteward/core/vcs/data/NewPullRequestDataTest.scala
+++ b/modules/core/src/test/scala/org/scalasteward/core/vcs/data/NewPullRequestDataTest.scala
@@ -7,9 +7,9 @@ import org.scalasteward.core.TestInstances.dummyRepoCache
 import org.scalasteward.core.TestSyntax._
 import org.scalasteward.core.buildtool.sbt.data.SbtVersion
 import org.scalasteward.core.data._
+import org.scalasteward.core.edit.scalafix.ScalafixMigration
 import org.scalasteward.core.git.{Branch, Sha1}
 import org.scalasteward.core.repoconfig.{IncludeScalaStrategy, RepoConfig, UpdatesConfig}
-import org.scalasteward.core.scalafix.Migration
 import org.scalasteward.core.util.Nel
 
 class NewPullRequestDataTest extends FunSuite {
@@ -165,7 +165,7 @@ class NewPullRequestDataTest extends FunSuite {
 
   test("migrationNote: when artifact has migrations") {
     val update = Update.Single("com.spotify" % "scio-core" % "0.6.0", Nel.of("0.7.0"))
-    val migration = Migration(
+    val migration = ScalafixMigration(
       update.groupId,
       Nel.of(update.artifactId.name),
       Version("0.7.0"),
@@ -189,7 +189,7 @@ class NewPullRequestDataTest extends FunSuite {
 
   test("migrationNote: when artifact has migrations with docs") {
     val update = Update.Single("com.spotify" % "scio-core" % "0.6.0", Nel.of("0.7.0"))
-    val migration = Migration(
+    val migration = ScalafixMigration(
       update.groupId,
       Nel.of(update.artifactId.name),
       Version("0.7.0"),
diff --git a/modules/core/src/test/scala/org/scalasteward/core/vcs/gitlab/GitLabApiAlgTest.scala b/modules/core/src/test/scala/org/scalasteward/core/vcs/gitlab/GitLabApiAlgTest.scala
index f421978c..8be09bac 100644
--- a/modules/core/src/test/scala/org/scalasteward/core/vcs/gitlab/GitLabApiAlgTest.scala
+++ b/modules/core/src/test/scala/org/scalasteward/core/vcs/gitlab/GitLabApiAlgTest.scala
@@ -2,8 +2,6 @@ package org.scalasteward.core.vcs.gitlab
 
 import cats.effect.IO
 import cats.implicits._
-import org.typelevel.log4cats.Logger
-import org.typelevel.log4cats.slf4j.Slf4jLogger
 import io.circe.literal._
 import io.circe.parser._
 import munit.FunSuite
@@ -23,6 +21,8 @@ import org.scalasteward.core.repoconfig.RepoConfig
 import org.scalasteward.core.util.{HttpJsonClient, Nel}
 import org.scalasteward.core.vcs.data._
 import org.scalasteward.core.vcs.gitlab.GitLabJsonCodec._
+import org.typelevel.log4cats.Logger
+import org.typelevel.log4cats.slf4j.Slf4jLogger
 
 class GitLabApiAlgTest extends FunSuite {
   object MergeWhenPipelineSucceedsMatcher