arif-rh / git-hooks
用于安装 Git Hooks 的包
0.1.1
2020-04-24 15:14 UTC
Requires
This package is auto-updated.
Last update: 2024-09-25 00:47:14 UTC
README
鼓励开发团队使用更好的编码风格
- PHP Linter 将帮助避免提交无效脚本
- 鼓励团队拥有相同的编码标准
功能
此包将安装预提交钩子到仓库中,以鼓励团队使用相同的编码标准。
安装
composer require arif-rh/git-hooks
- 在主
composer.json
文件中添加以下脚本
"scripts": {
"post-install-cmd": [
"Arifrh\\GitHooks\\PreCommit::PSR2" // or CI4
],
"post-update-cmd": [
"Arifrh\\GitHooks\\PreCommit::PSR2" // or CI4
]
}
注意
- 如果您想使用 PSR2 标准,请使用
PSR2
,如果您想使用 CodeIgniter4 标准,请使用CI4