phpcs-security-audit icon indicating copy to clipboard operation
phpcs-security-audit copied to clipboard

Unable to view Security coding standard after Composer install

Open dcunited08 opened this issue 4 years ago • 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`

dcunited08 avatar May 06 '20 16:05 dcunited08

@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/

jrfnl avatar May 06 '20 16:05 jrfnl

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

anshubansal2000 avatar Jun 21 '20 03:06 anshubansal2000

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

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

This worked fine for me

pfwd avatar Jun 30 '20 21:06 pfwd