Skip to content

0.1.1

Compare
Choose a tag to compare
@dwijnand dwijnand released this 03 Jul 16:53
99cea05

Since the release of 0.1.0, Scalafix/sbt-scalafix 0.9.18 has been released, introducing scalafixScalaBinaryVersion which is great as it allows users to run Scalafix on the right Scala version, for example you can now fix your 2.13-compiled code.

The README has been amended to include that instruction. Note the new instructions work with the existing 0.1.0 release, which is cool.

But, in 0.1.1, I've added a sanity check to ExplicitNonNullaryApply, so if the versions don't align you get an error with a fix suggestion, like this one:

[error] (scalafixAll) scalafix.sbt.InvalidArgument: Scala version mismatch:
(1) the target sources were compiled with Scala 2.13.2; (2) Scalafix is
running on Scala 2.12.11. To fix make scalafixScalaBinaryVersion == 2.13.
Try `ThisBuild / scalafixScalaBinaryVersion :=
CrossVersion.binaryScalaVersion(scalaVersion.value)`.

Credit to the Scalafix Team, I'm copying the idea from their built-in ExplicitResultTypes rewrite.

Changelog: v0.1.0...v0.1.1