Last active
August 29, 2015 14:11
-
-
Save paulsheldrake/af815f3661080c791110 to your computer and use it in GitHub Desktop.
Setup codesniffer on Fluxus Ubuntu machine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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