Skip to content

Commit

Permalink
feat: Updated scalafix/rules/src/main/scala/fix/Sc
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Jan 10, 2024
1 parent 60c285e commit 5ac02b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scalafix/rules/src/main/scala/fix/ScalaTestExtendsFix.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import scalafix.v1._
import scala.meta._

// Fix the extends with since the QQ matcher doesn't like it and I'm lazy.
class ScalaTestExtendsFix
extends SyntacticRule("ScalaTestExtendsFix") {
class UpdatedClassName
extends SyntacticRule("UpdatedClassName") {
override val description =
"""Handle the change with ScalaTest ( see https://www.scalatest.org/release_notes/3.1.0 ) """

Expand All @@ -15,7 +15,7 @@ class ScalaTestExtendsFix
println("Magicz!")
doc.tree.collect { case v: Type.Name =>
println(v)
if (v.toString == "FunSuite") {
if (v.toString == "DesiredClassName") {
Patch.replaceTree(v, "AnyFunSuite")
} else {
println(s"No change to $v")
Expand Down

0 comments on commit 5ac02b5

Please sign in to comment.