mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-27 14:40:22 +00:00
16 lines
517 B
YAML
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."
|