#51 Code Formatting: User side code formatting using pre commit hooks.

Опубликовано: 14 Март 2023
на канале: Power Tester
576
13

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)


Смотрите видео #51 Code Formatting: User side code formatting using pre commit hooks. онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Power Tester 14 Март 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 576 раз и оно понравилось 13 людям.