Skip to content

Restore scalafix task to prePR #525

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

Merged
merged 6 commits into from
Aug 30, 2021
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ val prePR_nonCross = taskKey[Unit]("Performs all necessary work required before
ThisBuild / prePR_nonCross := Def.sequential(
root / clean,
root / Compile / scalafmt,
root / Compile / compile,
Def.taskDyn {
if (scalaVersion.value.startsWith("2."))
(root / Compile / scalafix).toTask("")
else
(root / Compile / compile).toTask("")
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this the problem?

Suggested change
(root / Compile / compile).toTask("")
root / Compile / compile

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, tried that already. Tbh I'm a bit stumped, never quite made friends with sbt lol.

},
example / Compile / compile,
).value