- Fixes copyright using KDoc patterns instead of simpler comments

- Moves spotless and git-hooks to hidden folders
This commit is contained in:
Vitor Pamplona
2026-02-09 13:06:41 -05:00
parent 6125394354
commit 710f15f790
2549 changed files with 2549 additions and 2549 deletions
+28
View File
@@ -0,0 +1,28 @@
#!/bin/bash
GREEN='\033[0;32m'
NO_COLOR='\033[0m'
echo "*********************************************************"
echo "Running git pre-commit hook. Running Static analysis... "
echo "*********************************************************"
echo ""
echo "Java Version: "
echo "$JAVA_HOME"
echo "$(java -version)"
echo "Running test... "
./gradlew spotlessCheck
status=$?
if [ "$status" = 0 ] ; then
echo "Static analysis found no problems."
exit 0
else
echo "*********************************************************"
echo 1>&2 "Static analysis found violations it could not fix."
printf "Run ${GREEN}./gradlew spotlessApply${NO_COLOR} to fix formatting related issues...\n"
echo "*********************************************************"
exit 1
fi