Created
April 30, 2022 13:11
-
-
Save Barros9/96d71226328509bf0bd24d77082e2a2d to your computer and use it in GitHub Desktop.
Git hook pre commit ktlintCheck
This file contains hidden or 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/bash | |
echo "Git hook pre commit ktlintCheck" | |
cd mobile-and || return | |
./gradlew app:ktlintCheck --daemon | |
STATUS=$? | |
# return 1 exit code if running checks fails | |
[ $STATUS -ne 0 ] && exit 1 | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment