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

.ktlint.0.45.1.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/pinterest/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