Drupal Code Sniffer
This package is auto-updated.
Last update: 2020-08-10 00:09:52 UTC
Drupal standards for PHP_CodeSniffer. This is a copy from Coder module's Code Sniffer. It's a prototype of seeing if it would be possible to abstract it away from Coder and Drush entirely. This allows the Drupal Code Sniffer standard definition to be managed and run completely independently from Coder or Drush.
There are number of benefits from running the code independently from the Coder module and Drush:
- Steps towards encapsulation
- Travis tests
- Can be run without needing Coder or Drush installed
- Can have releases independent from Coder module
drush dl composer-8.x drush composer require global robloach/php_codesniffer_drupal @dev
composer require global robloach/php_codesniffer_drupal @dev
phpcs --standard ~/.composer/vendor/robloach/php_code_sniffer_drupal /path/to/module