4 best tools to implement for your githooks in an Android project
3 min readFeb 26, 2024
Last refresh: 05/10/2024
Git Hooks are programs that you can place in a your .git/hooks/ directory to trigger actions at certain points in Git’s execution. These scripts are the best enablers for increasing the quality of your codebase or your productivity. Here is my selection of the best tools to use in your hooks that we use at Shopmium. You can find also which tools we use on iOS in our hooks here. I will present hooks code sample about :
- Ktlint -F: The autoformatter
- Detekt : The Kotlin linter
- AndroidLint : The official Android framework linter
- Terminal-notifier: Get notified after checks failed or succeeded
- Bonus: How to generate Detekt and Android baseline files
If you are looking for the equivalent of iOS, I have written an article as well ⬇️