DrupalSecure Code Sniffs
Categories
Component ID
1921926
Component name
DrupalSecure Code Sniffs
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
DrupalSecure Code Sniffer (secure_cs) is a secure coding validation tool for Drupal built on PHP_CodeSniffer and modeled after work on DrupalCS in the Coder module.
Installation instructions
- Install PEAR: http://pear.php.net/manual/en/installation.php
- Install PHPCS: http://pear.php.net/package/PHP_CodeSniffer (version 1.4.x)
- Symlink the DrupalSecure directory into the standards folder for PHP_CodeSniffer:
$> sudo ln -sv /path/to/secure_cs/DrupalSecure $(pear config-get php_dir)/PHP/CodeSniffer/Standards
Optional (but recommended), install drush command:
Symlink the drush command to your ~/.drush directory:
$> ln -s /path/to/secure_cs/secure_cs.drush.inc ~/.drush/secure_cs.drush.inc
