guardian / typerighter

Even if you’re the right typer, couldn’t hurt to use Typerighter!
Apache License 2.0
276 stars 12 forks source link

scalafmt -> scalafmtAll in commit hook, to catch linting in tests #309

Closed jonathonherbert closed 1 year ago

jonathonherbert commented 1 year ago

What does this change?

sbt scalafmt does not lint tests! This PR changes the command to scalafmtAll, which does. (AFAIK the cli invocations do format everything, so we can leave them as-is.)

How to test

Change a test file and run the commit hook. You should see formatting applied to tests.