Provides set of libraries to easily setup code quality checks based on GrumPHP for Drupal module/theme/profile.
- Add
vijaycs85/drupal-quality-checker
tocomposer.json
or justcomposer require --dev vijaycs85/drupal-quality-checker
- Replace
grumphp.yml
in project's root directory (not Drupal root directory) withvendor/vijaycs85/drupal-quality-checker/grumphp.yml.dist
That's it. Now, all tasks (listed below) run on every git commit
.
Note: As part of install, GrumPHP adds
pre-commit
hook to repository. Existingpre-commit
might get destroyed when install/uninstall.
- PHPCS with Drupal standard.
- phpunit
- PHPLink
- YAML Lint
- Composer
- JSONLint
- PHP Copy/Paste Detector (CPD)
Long list of additional checks/validators available here.