Skip to content

Instantly share code, notes, and snippets.

@jgogstad
Last active August 29, 2022 11:18
Show Gist options
  • Select an option

  • Save jgogstad/c1ca97a9d26caad36a9f86dc313d0a34 to your computer and use it in GitHub Desktop.

Select an option

Save jgogstad/c1ca97a9d26caad36a9f86dc313d0a34 to your computer and use it in GitHub Desktop.

Revisions

  1. jgogstad revised this gist Aug 29, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion pre-push
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    # install natively compiled scalafmt, https://scalameta.org/scalafmt/
    # .git/hooks/pre-push
    scalafmt --check || scalafmt && exit 1
    scalafmt --check || (scalafmt && exit 1)
  2. jgogstad created this gist Aug 29, 2022.
    3 changes: 3 additions & 0 deletions pre-push
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    # install natively compiled scalafmt, https://scalameta.org/scalafmt/
    # .git/hooks/pre-push
    scalafmt --check || scalafmt && exit 1