Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/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