Download the PHP package miteshmap/drupal-quality-checker without Composer
On this page you can find all versions of the php package miteshmap/drupal-quality-checker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download miteshmap/drupal-quality-checker
More information about miteshmap/drupal-quality-checker
Files in miteshmap/drupal-quality-checker
Package drupal-quality-checker
Short Description Setups code quality checking tools for Drupal project.
License MIT
Homepage https://github.com/miteshmap/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 following code to
composer.json
underextra.drupal-scaffold.allowed-packages
section. composer require "miteshmap/drupal-quality-checker:^1.0"
- copy
grumphp.yml.dist
in project's root directory (not Drupal root directory) with./grumphp.yml
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.
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
sebastian/phpcpd Version >=4.0
phpro/grumphp-shim Version ^1.16
drupal/core-composer-scaffold Version ^9.4 || ^10.0
friendsoftwig/twigcs Version >=5.0