-
Notifications
You must be signed in to change notification settings - Fork 605
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
Update scalafix to the latest version, fix some rules and run the tests in the CI #2415
Conversation
It seems like this is hitting some incompatibilities with JDK 16. I need to investigate further. |
build.sbt
Outdated
ThisBuild / crossScalaVersions := Seq("3.0.0", "2.12.13", "2.13.5") | ||
val NewScala = "2.13.5" | ||
|
||
ThisBuild / crossScalaVersions := Seq("3.0.0", "2.12.13", NewScala) |
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.
I am not sure if your scalafix rules are meant to run against 3.0.0 sources, but if that's the case (and eventually anyway), you should consider tweaking the build to test that scenario.
See liancheng/scalafix-organize-imports#179 for an example (which manually applies the updated scalafix.g8 template).
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.
They aren't, we're testing them against 2.13
, but you're right that they are available for 3.0
as well. Not sure if that's a strictly negative thing.
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.
@bjaglin feel free to improve the situation after this PR is merged (or even as a part of it, whatever is easier for you). 😄
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.
@vasilmkd sure, willl open a separate PR
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.
Awesome, thank you.
Please review carefully. I believe the
sbt-scalafix
that was being updated byscala-steward
was not actually doing anything. This PR also enables running the scalafix tests in the CI, similar to Cats Effect's CI.