Experimental project
This is a sandbox project, which contains experimental code for developer use only.
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
