Pre-Push Git Hook for ktlint Formatting With Plugin

Опубликовано: 14 Октябрь 2024
на канале: goobar
7,237
94

In this tutorial, you'll learn how to create a pre-push git hook for ktlint formatting. This process can make it easy to enforce ktlint formatting for anybody working in your project.

This is focused on using ktlint in conjunction with ktlint-gradle plugin. If you're using the ktlint command line interface, there are built in commands for installing either a pre-commit or pre-push hook.

Thanks for watching!

📚 More resources:
https://proandroiddev.com/ooga-chaka-...

https://git-scm.com/book/en/v2/Custom...

ktlint-gradle plugin documentation:
https://github.com/jlleitschuh/ktlint...

Documentation on the command line interface usage can be found here:
https://github.com/pinterest/ktlint
--

🔔 Subscribe to My Channel ➡️   / @goobar  

💡More Kotlin Resources:
📖Kotlin for Android Developers
https://transactions.sendowl.com/stor...

🖥JetBrains certified online course: Kotlin for Android Developers
https://transactions.sendowl.com/stor... (affiliate link)

📚More Kotlin Books
Kotlin In Action - https://amzn.to/2DJxlsL (affiliate link)
https://www.amazon.com/shop/n8ebel?li... (affiliate link)
---

🙂 Follow Me Online
twitter ➡   / n8ebel  
website ➡ https://goobar.io
instagram ➡   / n8ebel  
youtube ➡    / @goobar  

ℹsome links direct to affiliate sites