FloeDesignTechnologies / phpcs-security-audit

phpcs-security-audit is a set of PHP_CodeSniffer rules that finds vulnerabilities and weaknesses related to security in PHP code
GNU General Public License v3.0
704 stars 86 forks source link

Unable to view Security coding standard after Composer install #79

Open dcunited08 opened 4 years ago

dcunited08 commented 4 years ago

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

jrfnl commented 4 years ago

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

anshubansal2000 commented 4 years ago

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

pfwd commented 4 years ago

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

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

This worked fine for me