Files
Android/lefthook.yml
2025-12-10 14:41:07 -05:00

16 lines
517 B
YAML

# Lefthook git hooks configuration
#
# ========== SETUP ==========
# 1. Install lefthook: https://lefthook.dev/installation/
# 2. Enable hooks: lefthook install
#
# ========== CUSTOMIZATION ==========
# Create lefthook-local.yml (gitignored) to override settings locally.
# https://lefthook.dev/examples/lefthook-local.html
pre-push:
commands:
format:
run: ./gradlew format --quiet && test -z "$(git status --porcelain)"
fail_text: "Formatting changes detected. Please commit them and push again."