Skip to content

Instantly share code, notes, and snippets.

@paulsheldrake
Last active August 29, 2015 14:11
Show Gist options
  • Save paulsheldrake/af815f3661080c791110 to your computer and use it in GitHub Desktop.
Save paulsheldrake/af815f3661080c791110 to your computer and use it in GitHub Desktop.
Setup codesniffer on Fluxus Ubuntu machine
#!/bin/bash
cd /var/www/html
drush pm-download coder --destination=$HOME/.drush -y
drush cache-clear drush
sudo pear install PHP_CodeSniffer
sudo cp -R $HOME/.drush/coder/coder_sniffer/Drupal/ /usr/share/pear/PHP/CodeSniffer/Standards/
echo "Setup complete"
echo ""
echo "Example command. Will scan all custom modules"
echo "phpcs --standard=Drupal /vagrant/docroot/sites/all/modules/custom/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment