Skip to content

Commit

Permalink
Remove detekt push hook
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-Fabi committed Oct 6, 2023
1 parent 14f273a commit d8c4640
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,3 @@ pluginManagement {
}
}
rootProject.name = "Mediator"

plugins {
id("org.danilopianini.gradle-pre-commit-git-hooks") version "1.1.9"
}

gitHooks {
hook("pre-push") {
from {
"""
echo "Running detekt check..."
OUTPUT="/tmp/detekt-${'$'}(date +%s)"
./gradlew detekt > ${'$'}OUTPUT
EXIT_CODE=${'$'}?
if [ ${'$'}EXIT_CODE -ne 0 ]; then
cat ${'$'}OUTPUT
rm ${'$'}OUTPUT
echo "**********************************************************************************************"
echo " detekt failed "
echo " Please fix the above issues before pushing. "
echo " Some of the issues might already be resolved automatically and only must be committed again. "
echo " Run './gradlew detekt' to to get an updated list of issues. "
echo "**********************************************************************************************"
exit ${'$'}EXIT_CODE
fi
rm ${'$'}OUTPUT
""".trimIndent()
}
}
createHooks(overwriteExisting = true)
}

0 comments on commit d8c4640

Please sign in to comment.