vip-scanner
vip-scanner copied to clipboard
VIP scanner hangs with wp-cli on Code sniffer when scanning plugin
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?
I have also tried cloning the vip quickstart and following the instructions here
- navigate to plugin dir i.e /srv/www/wp-content/plugins/{PLUGIN NAME}
- run command wp vip-scanner scan
I tried scanning the included plugins such as polldaddy, and it still hangs for me.
I am having the same issue in vip-quickstart