All Downloads are FREE. Search and download functionalities are using the official Maven repository.

.ktlint.0.45.1.source-code.ktlint-git-pre-push-hook-android.sh Maven / Gradle / Ivy

There is a newer version: 0.51.0-FINAL
Show newest version
#!/bin/sh
# https://github.com/pinterest/ktlint pre-push hook
git diff --name-only HEAD origin/$(git rev-parse --abbrev-ref HEAD) | grep '\.kt[s"]\?$' | xargs ktlint --android --relative
if [ $? -ne 0 ]; then exit 1; fi




© 2015 - 2024 Weber Informatics LLC | Privacy Policy