Files
AndroidJetpack/JetKite/scripts/git-hooks/pre-commit
T
coco 723ce1af5c a
2026-07-03 15:12:48 +08:00

14 lines
258 B
Bash

#!/bin/sh
echo "
===============
| Running kotlinter check......
===============
"
if ! ./gradlew lintKotlin ; then
printf 1>&2 "\nlintKotlin found problems, running formatKotlin; commit the result and re-push"
$GRADLEW formatKotlin
exit 1
fi