Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 176d5da9 authored by Nishith  Khanna's avatar Nishith Khanna
Browse files

pre-push: update hooks script

parent e8407cd5
Loading
Loading
Loading
Loading
Loading
+1 −10
Original line number Diff line number Diff line
#!/usr/bin/env bash
echo "🔍 Running Detekt..."
./gradlew detekt
./gradlew detekt lintRelease
DETEKT_EXIT=$?

if [ $DETEKT_EXIT -ne 0 ]; then
@@ -8,14 +8,5 @@ if [ $DETEKT_EXIT -ne 0 ]; then
  exit 1
fi

echo "🔍 Running Lint..."
./gradlew lintRelease
LINT_EXIT=$?

if [ $LINT_EXIT -ne 0 ]; then
  echo "❌ Push rejected: fix Lint issues before pushing."
  exit 1
fi

echo "✅ All checks passed!"
exit 0