mirror of https://github.com/sbt/sbt.git
Remove FixScalafmtPlugin
The underlying issue in https://github.com/scalameta/scalafmt/issues/1399 has supposedly been fixed in sbt-scalafmt 2.0.1 and we're on 2.0.2.
This commit is contained in:
parent
c8c8eb2ade
commit
97f59d20a0
|
|
@ -1,23 +0,0 @@
|
|||
import sbt._
|
||||
import Keys._
|
||||
import org.scalafmt.sbt.ScalafmtPlugin
|
||||
import ScalafmtPlugin.autoImport._
|
||||
|
||||
object FixScalafmtPlugin extends AutoPlugin {
|
||||
override def requires = ScalafmtPlugin
|
||||
override def trigger = allRequirements
|
||||
|
||||
val ScalaFmtTag = ConcurrentRestrictions.Tag("scalafmt")
|
||||
|
||||
override def globalSettings: Seq[Def.Setting[_]] =
|
||||
Seq(
|
||||
concurrentRestrictions += Tags.limit(ScalaFmtTag, 1)
|
||||
)
|
||||
|
||||
override def projectSettings: Seq[Def.Setting[_]] =
|
||||
Seq(
|
||||
scalafmtCheckAll := (scalafmtCheckAll.tag(ScalaFmtTag)).value,
|
||||
Compile / scalafmtCheck := ((Compile / scalafmtCheck).tag(ScalaFmtTag)).value,
|
||||
Test / scalafmtCheck := ((Test / scalafmtCheck).tag(ScalaFmtTag)).value,
|
||||
)
|
||||
}
|
||||
Loading…
Reference in New Issue