From aec281b1404e0fb8335c43b1d35a67011dac1d35 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Tue, 15 Aug 2023 17:35:25 +0000 Subject: [PATCH 1/2] Failed Scalafix rule(s) github:typelevel/cats/Cats_v2_2_0?sha=v2.2.0 See https://github.com/typelevel/cats/blob/v2.2.0/scalafix/README.md#migration-to-cats-v220 for details --- .../shared/src/main/scala/rpm4s/repo/data/RMDataF.scala | 2 +- .../src/main/scala/rpm4s/repo/data/primary/PackageF.scala | 2 +- .../src/main/scala/rpm4s/repo/data/updateinfo/UpdateF.scala | 2 +- shared/src/main/scala/rpm4s/codecs/Extractor.scala | 4 ++-- shared/src/main/scala/rpm4s/data/EVR.scala | 1 - 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/repo-utils/shared/src/main/scala/rpm4s/repo/data/RMDataF.scala b/repo-utils/shared/src/main/scala/rpm4s/repo/data/RMDataF.scala index dac0067..bed9505 100644 --- a/repo-utils/shared/src/main/scala/rpm4s/repo/data/RMDataF.scala +++ b/repo-utils/shared/src/main/scala/rpm4s/repo/data/RMDataF.scala @@ -3,7 +3,7 @@ package rpm4s.repo.data import java.time.Instant import cats.Id -import cats.implicits._ +import cats.syntax.all._ import rpm4s.data.Checksum diff --git a/repo-utils/shared/src/main/scala/rpm4s/repo/data/primary/PackageF.scala b/repo-utils/shared/src/main/scala/rpm4s/repo/data/primary/PackageF.scala index f6ed3bf..61786f1 100644 --- a/repo-utils/shared/src/main/scala/rpm4s/repo/data/primary/PackageF.scala +++ b/repo-utils/shared/src/main/scala/rpm4s/repo/data/primary/PackageF.scala @@ -1,7 +1,7 @@ package rpm4s.repo.data.primary import cats.Id -import cats.implicits._ +import cats.syntax.all._ import rpm4s.data._ case class PackageF[F[_]]( diff --git a/repo-utils/shared/src/main/scala/rpm4s/repo/data/updateinfo/UpdateF.scala b/repo-utils/shared/src/main/scala/rpm4s/repo/data/updateinfo/UpdateF.scala index a30b00d..9d5073e 100644 --- a/repo-utils/shared/src/main/scala/rpm4s/repo/data/updateinfo/UpdateF.scala +++ b/repo-utils/shared/src/main/scala/rpm4s/repo/data/updateinfo/UpdateF.scala @@ -3,7 +3,7 @@ package rpm4s.repo.data.updateinfo import java.time.Instant import cats.Id -import cats.implicits._ +import cats.syntax.all._ import rpm4s.data.{CVE, _} diff --git a/shared/src/main/scala/rpm4s/codecs/Extractor.scala b/shared/src/main/scala/rpm4s/codecs/Extractor.scala index 8c58b0d..af9e16f 100644 --- a/shared/src/main/scala/rpm4s/codecs/Extractor.scala +++ b/shared/src/main/scala/rpm4s/codecs/Extractor.scala @@ -100,7 +100,7 @@ object Extractor { ) val sigTags: Set[SignatureTag] = Set.empty def extract(data: Data): Result[Vector[T]] = { - import cats.implicits._ + import cats.syntax.all._ //TODO: needs more validation val a = for { names <- data(namesTag) @@ -211,7 +211,7 @@ object Extractor { ) val sigTags: Set[SignatureTag] = Set.empty def extract(data: Data): Result[Vector[FileEntry]] = { - import cats.implicits._ + import cats.syntax.all._ for { dirNames <- data(HeaderTag.DirNames) dirIndexes <- data(HeaderTag.DirIndexes) diff --git a/shared/src/main/scala/rpm4s/data/EVR.scala b/shared/src/main/scala/rpm4s/data/EVR.scala index 8dba974..ae2a9b9 100644 --- a/shared/src/main/scala/rpm4s/data/EVR.scala +++ b/shared/src/main/scala/rpm4s/data/EVR.scala @@ -1,7 +1,6 @@ package rpm4s.data import rpm4s.codecs.ConvertingError -import cats.implicits._ case class EVR( version: Version, From 41f7e2714ef15e0e45d950b62e21e2aed2dc7463 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Tue, 15 Aug 2023 17:35:32 +0000 Subject: [PATCH 2/2] Update cats-core, cats-free to 2.10.0 --- project/Dependencies.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/Dependencies.scala b/project/Dependencies.scala index d14c447..082dda8 100644 --- a/project/Dependencies.scala +++ b/project/Dependencies.scala @@ -1,5 +1,5 @@ object Dependencies { - val cats = "2.1.1" + val cats = "2.10.0" val fs2 = "2.4.2" val scalatest = "3.2.2" val scalatestplus = "3.2.2.0"