dangthinh104/commit-checker
Composer 安装命令:
composer require dangthinh104/commit-checker
包简介
Check coding standard & code syntax with Git pre-commit hook.
关键字:
README 文档
README
Installation
composer require dangthinh104/commit-checker
Publish the configuration:
Install GIT hooks
php artisan git:install-hooks
- Create default PSR config (It will create phpcs.xml in your root project).
php artisan git:create-phpcs
- Create default PHPMD config (It will create phpmd.xml in your root project).
php artisan git:create-phpmd
- Run test manually (made sure you've added all changed files to git stage)
php artisan git:pre-commit
- Run test manually PHPMD(default just check PSR2)
php artisan git:pre-commit --phpmd
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-07-23