fix.DiscardSlickDBIO.scala Maven / Gradle / Ivy
The newest version!
package fix
import scalafix.Patch
import scalafix.v1.Configuration
import scalafix.v1.Rule
import scalafix.v1.SemanticDocument
import scalafix.v1.SemanticRule
import metaconfig.Configured
class DiscardSlickDBIO(config: DiscardSingleConfig) extends SemanticRule("DiscardSlickDBIO") {
def this() = this(DiscardSingleConfig.default)
override def withConfiguration(config: Configuration): Configured[Rule] =
config.conf.getOrElse("DiscardSlickDBIO")(this.config).map(newConfig => new DiscardSlickDBIO(newConfig))
override def fix(implicit doc: SemanticDocument): Patch =
DiscardValue.typeRef(config.toDiscardValueConfig(List("slick/dbio/package.DBIO#", "slick/dbio/DBIOAction#")))
}