We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
每次提交代码都要手动执行 php 的语法检查和代码规范,如何在客户端把这些工作进行自动化。
php
利用 git 的钩子,这里使用的是 pre-commit.
git
pre-commit
具体脚本参考:pre-commit
如果该钩子以非零值退出,Git 将放弃此次提交,不过你可以用 git commit --no-verify 来绕过这个环节
pre-commit 脚本依赖 php 两个包,需要 composer 安装.
composer
参考 Git 钩子
The text was updated successfully, but these errors were encountered:
No branches or pull requests
场景
每次提交代码都要手动执行
php
的语法检查和代码规范,如何在客户端把这些工作进行自动化。方案
利用
git
的钩子,这里使用的是pre-commit
.具体脚本参考:pre-commit
依赖
pre-commit
脚本依赖php
两个包,需要composer
安装.参考
Git 钩子
The text was updated successfully, but these errors were encountered: