Download the PHP package jjsanz/drupal-quality-checker without Composer
On this page you can find all versions of the php package jjsanz/drupal-quality-checker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jjsanz/drupal-quality-checker
More information about jjsanz/drupal-quality-checker
Files in jjsanz/drupal-quality-checker
Package drupal-quality-checker
Short Description Fork of vijaycs85/drupal-quality-checker. Setups code quality checking tools for Drupal project.
License MIT
Homepage https://github.com/vijaycs85/drupal-quality-checker
Informations about the package drupal-quality-checker
Drupal Code Quality Checker
Overview
Provides set of libraries to easily setup code quality checks based on GrumPHP for Drupal module/theme/profile. Check out this Lullabot article for more details.
Note: This library aim to help contributed/custom Drupal module/theme/profile hosted in individual git repository.
Install
- Add
vijaycs85/drupal-quality-checker
tocomposer.json
(like here) 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.
Features
- PHPCS with Drupal standard.
- PHP Lint
- YAML Lint
- Composer
- Composer Normalize
- JSONLint
- PHP Copy/Paste Detector (CPD)
Long list of additional checks/validators available here.
Sample
Pass
Fail
Demo
Implemented in Modal Configuration module.
All versions of drupal-quality-checker with dependencies
drupal/coder Version >=8.3
ergebnis/composer-normalize Version >=2.5
php-parallel-lint/php-parallel-lint Version >=1.0
phpro/grumphp Version ^1.5
sebastian/phpcpd Version >=6.0