Skip to content
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

Merged
merged 20 commits into from
Jun 28, 2021
Merged

Conversation

vasilmkd
Copy link
Member

Please review carefully. I believe the sbt-scalafix that was being updated by scala-steward was not actually doing anything. This PR also enables running the scalafix tests in the CI, similar to Cats Effect's CI.

@vasilmkd vasilmkd marked this pull request as draft May 21, 2021 15:44
@vasilmkd
Copy link
Member Author

It seems like this is hitting some incompatibilities with JDK 16. I need to investigate further.

@vasilmkd vasilmkd marked this pull request as ready for review May 21, 2021 20:37
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)
Copy link

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).

Copy link
Member Author

@vasilmkd vasilmkd May 31, 2021

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.

Copy link
Member Author

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). 😄

Copy link

@bjaglin bjaglin May 31, 2021

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thank you.

@mpilquist mpilquist merged commit 0aacded into typelevel:main Jun 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants