-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add scalafix rule for renaming assert
to expect
#70
Conversation
I'm not fully versed in scalafix migrations, but considering none of this code is wired in the sbt-build, does it mean that the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we missing the definition of RenameAssertToExpect
?
.jvmPlatform( | ||
scalaVersions = Seq(V.scala212), | ||
axisValues = Seq(TargetAxis(scala3Version)), | ||
settings = Seq() | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain the need for the custom TargetAxis
please? (also I suppose it has something to do with why this is mixing 2.12 and 3.x)
Apologies - I missed out a lot of context. The A lot of the files ( Since we don't need to maintain them past the release, I haven't looked into them in detail. Scala steward migrationsThe rule will be run by Scala steward, provided we add some config to the Scala steward repo. The only necessary file for scala steward (or our users) to run the rule is the You can try this out locally on any project with the
The release processWhen we instruct scala steward (or our users) to apply the rule, we'll reference a specific tag. For example, if this rule is meant to be run as part of a
Since the file is referenced through a tag, we can delete the On a related note, I'm looking into how we can use scala steward's artifact migrations to seamlessly migrate users from disney to typelevel. Scala steward would need to migrate the artifact and apply the I don't think there are any other API changes we can mitigate through scalafix rules. We have changed the signature of |
This is a follow up to #69 . The
RenameAssertToExpect
rule renames calls to weaverassert
toexpect
.As part of the release, it would be great to add upgrade notes to the documentation and a scalafix migration.