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

  1. Install PEAR: http://pear.php.net/manual/en/installation.php
  2. Install PHPCS: http://pear.php.net/package/PHP_CodeSniffer (version 1.4.x)
  3. 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

Project Information