Using Precommit Hooks For Static Code Analysis

Опубликовано: 30 Январь 2025
на канале: PHP Developers TV
457
9

In this video, we discuss how to use git's precommit hook feature to allow us to run our static code analysis tools on just the files we're going to commit to prevent our changes from breaking the build and keeping our code clean.

Looking to hire a PHP developer? Check out LaraJobs: https://larajobs.com/?via=e70744

Follow us:
  / phpdevstv  
  / phpdevstv  
  / phpdevstv  
  / phpdeveloperstv  


Icons made by Freepik from www.flaticon.com

00:00 Intro
00:46 Exploring the .git Directory
01:55 Our First Pre-Commit Script
03:51 Our Second Pre-Commit Script
09:49 What You Need To Know
10:02 Outro