https://github.com/kayw-geek/quality-hook-installer
Install an execute script of specify quality tools to your git pre-commit hook, and it executes only for changed files
https://github.com/kayw-geek/quality-hook-installer
githooks githooks-plugin phpcsfixer phplint phpstan
Last synced: 3 months ago
JSON representation
Install an execute script of specify quality tools to your git pre-commit hook, and it executes only for changed files
- Host: GitHub
- URL: https://github.com/kayw-geek/quality-hook-installer
- Owner: kayw-geek
- License: mit
- Created: 2022-09-07T06:51:52.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-24T03:03:05.000Z (about 2 years ago)
- Last Synced: 2025-10-25T15:27:55.838Z (7 months ago)
- Topics: githooks, githooks-plugin, phpcsfixer, phplint, phpstan
- Language: PHP
- Homepage:
- Size: 37.1 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Quality Hook Installer
Install an execute script of specify quality tools to your git pre-commit hook, and it executes only for changed files
## Install
```BASH
composer global require kayw/quality-hook-installer
```
## Usage
1. `quality run install --phpstan --php-cs-fixer`
2. Execute `git add .` in your project.
3. `git commit -m 'xxx'`
4. 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`