Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't limit to Compile/Test configurations
Browse files Browse the repository at this point in the history
Albert Meltzer committed Nov 11, 2021
1 parent dd71a77 commit ec5b7b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugin/src/main/scala/org/scalafmt/sbt/ScalafmtPlugin.scala
Original file line number Diff line number Diff line change
@@ -477,7 +477,9 @@ object ScalafmtPlugin extends AutoPlugin {
)

override def projectSettings: Seq[Def.Setting[_]] =
Seq(Compile, Test).flatMap(inConfig(_)(scalafmtConfigSettings)) ++ Seq(
Seq(Compile, Test, IntegrationTest).flatMap {
inConfig(_)(scalafmtConfigSettings)
} ++ Seq(
scalafmtAll := scalafmt.?.all(anyConfigsInThisProject).value,
scalafmtCheckAll := scalafmtCheck.?.all(anyConfigsInThisProject).value
)

0 comments on commit ec5b7b1

Please sign in to comment.