mirror of
https://github.com/usetrmnl/trmnl-android.git
synced 2026-04-29 13:35:26 -07:00
Git Hooks
This project uses Git hooks to maintain code quality.
Setup for new developers
After cloning the repository, run:
git config core.hooksPath .githooks
This will configure Git to use the hooks in the .githooks directory.
Available hooks
Pre-commit
Automatically runs ./gradlew formatKotlin before each commit and prevents commits if:
- The code fails to pass formatting checks
- The formatter modifies files that aren't included in the commit
If your commit is rejected due to formatting issues:
- Review the error messages
- Add the formatted files to your commit with
git add - Try committing again