arif-rh/git-hooks

用于安装 Git Hooks 的包

安装: 151

依赖者: 3

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 0

开放性问题: 0

语言:Shell

0.1.1 2020-04-24 15:14 UTC

This package is auto-updated.

Last update: 2024-09-25 00:47:14 UTC


README

鼓励开发团队使用更好的编码风格

  • PHP Linter 将帮助避免提交无效脚本
  • 鼓励团队拥有相同的编码标准

功能

此包将安装预提交钩子到仓库中,以鼓励团队使用相同的编码标准。

安装

  1. composer require arif-rh/git-hooks
  2. 在主 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