From caab820d72bb546db94d5265b3109c75a6f30b8c Mon Sep 17 00:00:00 2001 From: Brice Jaglin Date: Wed, 15 Jul 2020 17:23:32 +0200 Subject: [PATCH] improve racy test: scalafixAll was triggering Compile/compile Through Test/scalafix & then Test/internalDependencyClasspath, scalafixAll evaluates Compile/compile, which could make Compile/scalafix run as expected sometimes before the fix in 68b7e82. --- src/sbt-test/sbt-scalafix/wrapper/project/LintAllPlugin.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sbt-test/sbt-scalafix/wrapper/project/LintAllPlugin.scala b/src/sbt-test/sbt-scalafix/wrapper/project/LintAllPlugin.scala index ed2e0dbc..8a13fcce 100644 --- a/src/sbt-test/sbt-scalafix/wrapper/project/LintAllPlugin.scala +++ b/src/sbt-test/sbt-scalafix/wrapper/project/LintAllPlugin.scala @@ -17,7 +17,7 @@ object LintAllPlugin extends AutoPlugin { override def projectSettings: Seq[Def.Setting[_]] = Seq( lintAll := { - scalafixAll.toTask(" --check").value + scalafix.in(Compile).toTask(" --check").value // & other linters... } )