Scalafix rules for Better Type Inference For ADTs
Product with Serializable into
sealed traits and
sealed abstract classes. Does not do anything if either of
Serializable is already mixed in since it assumes that this has been done on purpose.
Created solely for education purposes. Use at your own risk!
Installation & Usage
Either clone the repo and then in the
scalafix directory run
sbt publishLocal and then use it in your build like so
ThisBuild / scalafixDependencies += "com.devinsideyou" %% "scalafix" % "0.0.1-SNAPSHOT"
and then run it with
scalafix BetterTypeInferenceForAdts from sbt or run directly from github (slower) with