Skip to content

Commit

Permalink
Upgrade to scalafix 0.13.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdziuban committed Sep 30, 2024
1 parent f53f498 commit 60b6cce
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scalafix/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Global / onChangedBuildSource := ReloadOnSourceChanges
lazy val V = _root_.scalafix.sbt.BuildInfo

lazy val rulesCrossVersions = Seq(V.scala213, V.scala212)
lazy val scala3Version = "3.3.3"
lazy val scala3Version = "3.3.4"

inThisBuild(
List(
Expand Down
2 changes: 1 addition & 1 deletion scalafix/project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.10.1
sbt.version=1.10.2
2 changes: 1 addition & 1 deletion scalafix/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.12.1")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.13.0")
addSbtPlugin("com.eed3si9n" % "sbt-projectmatrix" % "0.10.0")
addSbtPlugin("org.typelevel" % "sbt-tpolecat" % "0.5.2")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ extends SyntacticRule("NoUnnecessaryForComprehension") {

override def fix(implicit doc: SyntacticDocument): Patch =
doc.tree.collect {
case t @ Term.ForYield(List(_), _) => Patch.lint(UnnecessaryForComprehensionLint(t.pos, config.color))
case t @ Term.ForYield.After_4_9_9(Term.EnumeratorsBlock(List(_)), _) =>
Patch.lint(UnnecessaryForComprehensionLint(t.pos, config.color))
}.asPatch
}

0 comments on commit 60b6cce

Please sign in to comment.