Last active
August 29, 2022 11:18
-
-
Save jgogstad/c1ca97a9d26caad36a9f86dc313d0a34 to your computer and use it in GitHub Desktop.
Scala: Check formatting before push
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install natively compiled scalafmt, https://scalameta.org/scalafmt/ | |
# .git/hooks/pre-push | |
scalafmt --check || (scalafmt && exit 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment