kayw / quality-hook-installer
Install an execute script of specify quality tools to your git pre-commit hook, and it executes only for changed files
1.0.24
2024-05-24 03:01 UTC
Requires
- symfony/console: ^6.4.7
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.57.2
- phpstan/phpstan: *
README
Install an execute script of specify quality tools to your git pre-commit hook, and it executes only for changed files
Install
composer global require kayw/quality-hook-installer
Usage
quality run install --phpstan --php-cs-fixer
- Execute
git add .
in your project. git commit -m 'xxx'
- The pre-commit hook will be triggered and the PHPStan and PHPCsFixer will execute only for changed files.
Commands
The following command will execute quality inspection only for changed files
quality run --phpstan --php-cs-fixer
The following command will write in your pre-commit of git hook
quality run install --phpstan --php-cs-fixer
The following command will remove your pre-commit of git hook
quality run uninstall