dangthinh104 / commit-checker
Check coding standard & code syntax with Git pre-commit hook.
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:package
Requires
- php: ^7.1.3
- laravel/framework: ^5.6|^6|^7|^8
- phpmd/phpmd: ^2.8.2
- squizlabs/php_codesniffer: ^3.3
This package is auto-updated.
Last update: 2025-05-04 13:47:02 UTC
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