Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scalafmtOnCompile := true Not reformatting tests #73

Open
nkohen opened this issue Aug 16, 2018 · 0 comments
Open

scalafmtOnCompile := true Not reformatting tests #73

nkohen opened this issue Aug 16, 2018 · 0 comments

Comments

@nkohen
Copy link

nkohen commented Aug 16, 2018

I have scalafmtOnCompile set to true in my build.sbt and when I run sbt compile it does run scalafmt and sbt:scalafmt but it does not run test:scalafmt.

I also tried:

val compileDeps: List[Scoped.AnyInitTask] = List(Compile / scalafmt, Test / scalafmt, Sbt / scalafmt)
(Compile / compile) := ((Compile / compile) dependsOn (compileDeps: _*)).value

And this has exactly the same effect.

I'm using sbt.version=1.1.6 and "com.lucidchart" % "sbt-scalafmt" % "1.15"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant