From 176d5da92617c71013832ace121565d71fc25c9c Mon Sep 17 00:00:00 2001 From: Nishith Khanna Date: Mon, 13 Apr 2026 12:42:36 +0530 Subject: [PATCH] pre-push: update hooks script --- scripts/hooks/pre-push | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/scripts/hooks/pre-push b/scripts/hooks/pre-push index a2649410b..05e8c0f16 100644 --- a/scripts/hooks/pre-push +++ b/scripts/hooks/pre-push @@ -1,6 +1,6 @@ #!/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 -- GitLab