Created
November 8, 2019 12:15
-
-
Save aykuttasil/fe617067dda4da32f6fa9ac753d54c09 to your computer and use it in GitHub Desktop.
Git Hooks
This file contains 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
#!/bin/sh | |
echo "Running ktlintFormat" | |
./gradlew ktlintFormat | |
result=$? | |
if [ "$result" = 0 ] ; then | |
echo "ktlintFormat found no problems" | |
exit 0 | |
else | |
echo | |
"Problems found, files will not be committed." | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment