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

.ktlint.0.38.0-alpha01.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/shyiko/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