Skip to content

distvan/legacy-php-hook

Repository files navigation

Git pre-commit hook

Use pre-commit-hook.sh to enforce coding standards and maintain code quality in your project. It is ideal for legacy codebases because it runs only on new or modified files, analyzing only the relevant lines to avoid flooding you with warnings from existing code.

The hook is fully customizable, you can define custom PHP_CodeSniffer rulesets and rules tailored to your project's need.

🌐 Join Me on CoderLegion

CoderLegion Check out my articles and community posts on CoderLegion!

About

A featured git pre commit hook script with some code sniffer rules

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published