Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to view Security coding standard after Composer install #79

Open
dcunited08 opened this issue May 6, 2020 · 3 comments
Open

Comments

@dcunited08
Copy link

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
Copy link
Contributor

jrfnl commented May 6, 2020

@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
Copy link

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

@pfwd
Copy link

pfwd commented Jun 30, 2020

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

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

This worked fine for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants