qntn / drupal-quality-checker
Setups code quality checking tools for Drupal project.
Installs: 296
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Forks: 0
Type:project
pkg:composer/qntn/drupal-quality-checker
Requires
This package is auto-updated.
Last update: 2025-10-27 00:20:33 UTC
README
Overview
Provides set of libraries to easily setup code quality checks based on GrumPHP for Drupal module/theme/profile. Check out this article from Lullabot for more details.
>Note: This library is aimed to help contributed/custom Drupal module/theme/profile hosted in individual git repository.
Install
- Add vijaycs85/drupal-quality-checkertocomposer.json(like here) or justcomposer require --dev vijaycs85/drupal-quality-checker
- Replace grumphp.ymlin 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. Existing pre-commit might get destroyed when install/uninstall.
Features
- PHPCS with Drupal standard.
- PHPLint
- YAML Lint
- Composer
- Composer Normalize
- JSONLint
- PHP Copy/Paste Detector (CPD)
- drupal-check
Long list of additional checks/validators available here.
Sample
Pass

Fail

Demo
Implemented in Modal Configuration module.