Because some sub projects does not enable the MultiNode plugin. Add ignore packages support for scalafix.
22 lines
670 B
Scala
22 lines
670 B
Scala
/*
|
|
* Copyright (C) 2018 Lightbend Inc. <https://www.lightbend.com>
|
|
*/
|
|
package akka
|
|
|
|
import sbt.plugins.JvmPlugin
|
|
import sbt.{AutoPlugin, PluginTrigger, Plugins, ScalafixSupport}
|
|
|
|
object ScalafixIgnoreFilePlugin extends AutoPlugin with ScalafixSupport {
|
|
override def trigger: PluginTrigger = allRequirements
|
|
|
|
override def requires: Plugins = JvmPlugin
|
|
import sbt._
|
|
lazy val scalafixIgnoredSetting: Seq[Setting[_]] = Seq(
|
|
ignore(Test)
|
|
)
|
|
|
|
override def projectSettings: Seq[Def.Setting[_]] = scalafixIgnoredSetting ++ Seq(
|
|
addProjectCommandsIfAbsent(
|
|
alias = "fix",
|
|
value = ";scalafixEnable;compile:scalafix;test:scalafix;test:compile"))
|
|
}
|