Open olafurpg opened 6 years ago
Scalafix uses a global mutable cache for compiling rules https://github.com/scalacenter/scalafix/blob/6a0c120ce3e917acdb10e8ad4e69f52b26d468eb/scalafix-reflect/src/main/scala/scalafix/internal/reflect/ScalafixToolbox.scala#L23-L26
We should replace this cache by requiring end-users to instantiate an instance of "Scalafix API". This gives end-users control over when to clear/start caching results.
I'd also settle for an sbt command to flush the cache.
Scalafix uses a global mutable cache for compiling rules https://github.com/scalacenter/scalafix/blob/6a0c120ce3e917acdb10e8ad4e69f52b26d468eb/scalafix-reflect/src/main/scala/scalafix/internal/reflect/ScalafixToolbox.scala#L23-L26
We should replace this cache by requiring end-users to instantiate an instance of "Scalafix API". This gives end-users control over when to clear/start caching results.