vip-scanner icon indicating copy to clipboard operation
vip-scanner copied to clipboard

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

Open flacoman91 opened this issue 9 years ago • 2 comments

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 avatar Feb 02 '16 20:02 flacoman91

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 avatar Feb 03 '16 21:02 flacoman91

I am having the same issue in vip-quickstart

jjeaton avatar Nov 18 '16 13:11 jjeaton