GitHub: https://github.com/PramodKumarYadav/zero
Goal:
In this video, we will learn how to do code formatting automatically using pre-commit hooks. With help of pre commit hooks, every time user will try to commit a change, the hooks will check if it passes formatting rules.
If yes, it will allow the commit to succeed.
If no, it will auto format code and present a file to you that you can now stage and commit.
Objective:
To show how we can use pre commit hooks to automatically format code on users local machine.
Next steps:
Show how to use strengths of both pre commit hooks and checks in GitHub CI to ensure no unformatted code ever gets added in the remote main branch (by existing or new users)
Watch video #51 Code Formatting: User side code formatting using pre commit hooks. online without registration, duration hours minute second in high quality. This video was added by user Power Tester 14 March 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 576 once and liked it 13 people.