Commit 8e6d9537 authored by Michael Comella's avatar Michael Comella Committed by Sebastian Kaspari
Browse files

Issue #1062: Add tools/pre-push-recommended.sh.

Before closing this issue, we should also document how to use this
script.
parent 8ebc52b3
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
#!/bin/sh

# We recommend you run this as a pre-push hook: to reduce
# review turn-around time, we want all pushes to run tasks
# locally. Using this hook will guarantee your hook gets
# updated as the repository changes.
#
# This hook tries to run as much as possible without taking
# too long.
#
# You can use it by running this command from the project root:
# `ln -s ../../tools/pre-push-recommended.sh .git/hooks/pre-push`

# Descriptions for each gradle task below can be found in the
# output of `./gradlew tasks`.
./gradlew -q \
        ktlint \
        detekt