Created
August 31, 2019 04:45
-
-
Save kikoso/a46e6a2efd07ab66ed049b5f7b76ace5 to your computer and use it in GitHub Desktop.
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 detekt" | |
./gradlew detektCheck | |
result=$? | |
if [ "$result" = 0 ] ; then | |
echo "Detekt 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