I was able to get vim Drupal Code_Sniffer to work locally by doing the following two things:
Adding ~/.composer/vendor/bin to my $PATH env variable.
Completely removing the old phpcs installed in ~/.composer/vendor and reinstalling using composer require drupal/coder: see https://www.drupal.org/node/1419988
There are several things that need to happen in order to make ansible do this for us.
[x] phpcs needs to be in the shell PATH: NuCivic/ansible-dev-vm#44
[ ] However an incompatible version of phpcs/coder is being added to the box we need to remove (I couldn't find it).
[ ] We need to install coder and enable sniffer following instructions in https://www.drupal.org/node/1419988 (once this happens vim picks it up automatically).
I was able to get vim Drupal Code_Sniffer to work locally by doing the following two things:
composer require drupal/coder
: see https://www.drupal.org/node/1419988There are several things that need to happen in order to make ansible do this for us.