Automattic / vip-scanner

Deprecated: Scan all sorts of themes and files and things! Use PHPCS and the VIP coding standards instead
https://automattic.com
140 stars 51 forks source link

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

Open flacoman91 opened 8 years ago

flacoman91 commented 8 years ago

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 commented 8 years ago

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.

jjeaton commented 7 years ago

I am having the same issue in vip-quickstart