dev-master
9999999-devphp git commit hooks
MIT
The Requires
by Junjie.Ning
git git hooks
v1.0.0
1.0.0.0php git commit hooks
MIT
The Requires
by Junjie.Ning
git git hooks
Wallogit.com
2017 © Pedro Peláez
php git commit hooks
composer require fp-coding-standards/fpcs
1、在提交代码(git commit)到git库时,本钩子被触发。
2、调用phpcbf和phpcs,来做代码检查并尝试自动修复代码样式。
3、将修复后的代码提交到git库中。, (*2)
1、安装依赖PHP_CodeSniffer,定义代码样式,本例中使用FunPlus-Coding-Standards。
2、安装钩子 vendor/bin/git-hooks-install, (*3)
参考 Git Hook 或自行Google, (*4)
本钩子使用PHP_CodeSniffer做代码检查,需要提前配置好PHP_CodeSniffer和PHP_CodeSniffer所需的rule set。, (*5)
php git commit hooks
MIT
git git hooks
php git commit hooks
MIT
git git hooks