Download the PHP package nickwilde1990/php-composter-phpcs-drupal without Composer
On this page you can find all versions of the php package nickwilde1990/php-composter-phpcs-drupal. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nickwilde1990/php-composter-phpcs-drupal
More information about nickwilde1990/php-composter-phpcs-drupal
Files in nickwilde1990/php-composter-phpcs-drupal
Package php-composter-phpcs-drupal
Short Description PHP Composter PHP Code Sniffer for Drupal (pre-commit).
License GPL-3.0-or-later
Informations about the package php-composter-phpcs-drupal
PHP Composter PHPCS Drupal
Check your Drupal code for standards compliance before committing.
This Composer package will enforce a check of your PHP files upon each commit to make sure they comply with the Drupal code standards as defined by Drupal Coder.
This is a PHP Composter Action.
Uses the wonderful PHP CodeSniffer Project.
Table Of Contents
- Installation
- Basic Usage
- Configuration
- Contributing
Installation
Just add as a development requirement to your composer.json
, and it should work automagically:
Note: If you are using this with a Drupal module which is being run through the DrupalCI test bot, due to how that works/adds test dependencies, you will likely need to also run
to force the required version of PHPCS since otherwise, the test bot is locked to the 2.8 branch.
Basic Usage
It should just work when you git commit
.
Configuration
The Drupal Coder module provides two
sets of sniffs. By default this uses the Drupal
sniff rather than
DrupalPractice
. If you want to use DrupalPractice
(or any other sniff set),
you can specify that standard to use in your composer.json's extra
key:
Contributing
All feedback / bug reports / pull requests are welcome.
All versions of php-composter-phpcs-drupal with dependencies
squizlabs/php_codesniffer Version ^3.0
drupal/coder Version ^8.3
dealerdirect/phpcodesniffer-composer-installer Version ^0.4.4