Scalafix v0.6.0-M14
Pre-release
Pre-release
IMPORTANT. If you are on sbt 1.1 and can't upgrade to sbt v1.2.1 then the recommended version is 0.6.0-M14-3
to work around sbt/sbt#4299 ClassCastException: sbt.internal.util.Init$SettingList
.
- #786 Upgrade to Scalameta v4.0.0-M8. This is likely one of the last milestone releases before Scalameta v4. At this time there are 5 remaining open tickets in the milestone for v4.0 https://github.com/scalameta/scalameta/milestone/26
- #781 Support loading custom rules by their name instead of FQN. This allows custom rules to include a text file
META-INF/services/scalafix.v1.Rule
in resources with the FQN of the rule so that users can reference external rules by their name (for exampleNoVars
) instead of the fully qualified class name (for exampleclass:com.bar.NoVars
). - #783 Add scalafix-interfaces with Java APIs for reflective invocation. This PR adds a Java module
scalafix-interfaces
that can be used by build tools and IDEs to invoke Scalafix using JVM reflection. The module is 8kb with no external dependencies, the documentation is available here: https://www.javadoc.io/doc/ch.epfl.scala/scalafix-interfaces/0.6.0-M14 - scalacenter/sbt-scalafix#9 support
scalafixDependencies: List[ModuleID]
setting in sbt-scalafix to run external custom rewrites that are published to Maven. This feature is required for the upcoming Scala collection migration rewrites. - scalacenter/sbt-scalafix#8 add back sbt 0.13 support to sbt-scalafix. The last M12 release only supported sbt 0.13.