Fede Galland 17844d057e
Restructuring of the repository tooling (#625)
* Move scripts and test-tools to tools/

* Update CHANGELOG.md
2025-10-30 16:47:28 +01:00

22 lines
670 B
Bash

#!/bin/bash
# Navigate to the root of the repository
cd "$(git rev-parse --show-toplevel)" || exit 1
# Run spotlessCheck
./gradlew spotlessCheck
# Capture the exit code
EXIT_CODE=$?
if [ $EXIT_CODE -ne 0 ]; then
echo "======================================================================================"
echo "Spotless found some formatting issues. Please run ./gradlew spotlessApply to fix them."
echo "======================================================================================"
exit 1
else
echo "==================================="
echo "Spotless check passed successfully!"
echo "==================================="
fi