FloeDesignTechnologies/phpcs-security-audit

Unable to view Security coding standard after Composer install

dcunited08 opened this issue · 3 comments

I was attempting to install this via Composer but it doesn't appear to be correctly registering. Am I missing something?

`$ composer require --dev pheromone/phpcs-security-audit
Using version ^2.0 for pheromone/phpcs-security-audit
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 2 installs, 0 updates, 0 removals

  • Installing squizlabs/php_codesniffer (3.5.5): Loading from cache
  • Installing pheromone/phpcs-security-audit (2.0.1): Loading from cache
    Writing lock file
    Generating autoload files
    $ ./vendor/bin/phpcs -i
    The installed coding standards are PEAR, Zend, PSR2, MySource, Squiz, PSR1 and PSR12`
jrfnl commented

@dcunited08 The Readme has been updated for changes made in master, but those changes haven't been released yet.

You can use the "old" install instructions from the last release: https://github.com/FloeDesignTechnologies/phpcs-security-audit/tree/2.0.1#install.

Alternatively, require the Dealerdirect Composer PHPCS plugin to register the standard with PHPCS (this plugin will be included automatically in the next release) or register the standard with PHPCS manually using something along the lines of phpcs --config-set installed_paths /path/to/Security-standard/

Hi @jrfnl I am also facing the same issue. I was wondering if you were able to patch this?

pfwd commented

@anshubansal2000 as @jrfnl mentions, you can install Dealer Direct like so:

composer require --dev dealerdirect/phpcodesniffer-composer-installer

This worked fine for me