Skip to content
This repository has been archived by the owner on Jul 20, 2018. It is now read-only.

VIP scanner hangs with wp-cli on Code sniffer when scanning plugin #311

Open
flacoman91 opened this issue Feb 2, 2016 · 2 comments
Open

Comments

@flacoman91
Copy link

I'm having an issue where the vip-scanner would hang on me when php code sniffer is installed with the wordpress coding standards

I run the following command
wp vip-scanner --summary --debug scan wp-content/plugins/my-test-plugin/

Here is the debug output:

Debug: No readable global config found (0.008s)
Debug: No project config found (0.009s)
Debug: ABSPATH defined: /Users/flacoman91/projects/wordpress/ (0.01s)
Debug: Begin WordPress load (0.011s)
Debug: wp-config.php path: /Users/flacoman91/projects/wordpress/wp-config.php (0.011s)
Debug: Loaded WordPress (0.189s)
Debug: Running command: vip-scanner scan (0.189s)

When I run a standalone phpcs it works fine showing all of the sniffer output and it completes

I am on MacOS x 10.11.3

Any idea what is causing this issue?

@flacoman91
Copy link
Author

I have also tried cloning the vip quickstart and following the instructions here

  1. navigate to plugin dir i.e /srv/www/wp-content/plugins/{PLUGIN NAME}
  2. run command wp vip-scanner scan

I tried scanning the included plugins such as polldaddy, and it still hangs for me.

@flacoman91 flacoman91 changed the title VIP scanner hangs on Code sniffer VIP scanner hangs on Code sniffer when scanning plugin Feb 3, 2016
@flacoman91 flacoman91 changed the title VIP scanner hangs on Code sniffer when scanning plugin VIP scanner hangs with wp-cli on Code sniffer when scanning plugin Feb 3, 2016
@jjeaton
Copy link

jjeaton commented Nov 18, 2016

I am having the same issue in vip-quickstart

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

No branches or pull requests

2 participants