FloeDesignTechnologies/phpcs-security-audit

Doc inconsistency and fatal error

alex-moreno opened this issue · 5 comments

I get this:

Fatal error: Uncaught Error: Call to undefined method Security_Sniffs_Utils::drupal_parse_info_format() in /Users/alejandromoreno/projects/[...]/vendor/pheromone/phpcs-security-audit/Security/Sniffs/Drupal7/AdvisoriesContribSniff.php:34

but apart of that, the --standard=example_drupal7_ruleset.xml does not work, it points to use Security instead:

./vendor/bin/phpcs --standard=Security --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md docroot/sites/all/modules/custom/

Thanks in advance

 ./vendor/bin/phpcs  --version
PHP_CodeSniffer version 2.9.1 (stable) by Squiz (http://www.squiz.net)

ok, got this fixed. symlink does not seem to work well, a temporary solution was to force moving the folder:

sudo mv vendor/pheromone/phpcs-security-audit/Security/ vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Security

instead of the ln -s which, again, does not seem to work.

the doc is consistent btw.

related to this issue: #2

I've fixed in 1d25d9b the dependency that might mess up things if installed from Packagist directly: "squizlabs/php_codesniffer": "~1.5.1 || >=2.3.3 <3.0"