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

.ktlint.0.40.0.source-code.ktlint-git-pre-commit-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-commit hook
git diff --name-only --cached --relative | grep '\.kt[s"]\?$' | xargs ktlint --android --relative .
if [ $? -ne 0 ]; then exit 1; fi




© 2015 - 2024 Weber Informatics LLC | Privacy Policy