You are here

phpcs.sh in Site Audit 7

Same filename and directory in other branches
  1. 8.2 phpcs.sh
#!/usr/bin/env bash
if [ ! -f "./vendor/bin/phpcs" ]
then
  echo "phpcs not found; please run 'composer install --dev'"
  exit 1
fi
./vendor/bin/phpcs \
  --standard=./vendor/drupal/coder/coder_sniffer/Drupal \
  --extensions=php,module,inc,install,test,profile,theme \
  Check \
  Report \
  *.inc

File

phpcs.sh
View source
  1. #!/usr/bin/env bash
  2. if [ ! -f "./vendor/bin/phpcs" ]
  3. then
  4. echo "phpcs not found; please run 'composer install --dev'"
  5. exit 1
  6. fi
  7. ./vendor/bin/phpcs \
  8. --standard=./vendor/drupal/coder/coder_sniffer/Drupal \
  9. --extensions=php,module,inc,install,test,profile,theme \
  10. Check \
  11. Report \
  12. *.inc