You are here

php-lint.sh in Realistic Dummy Content 3.x

#!/bin/bash
#
# Lint PHP code.
#
set -e

echo '=> Linting PHP code.'
echo 'If you are getting a false negative, use:'
echo ''
echo '// @codingStandardsIgnoreStart'
echo '...'
echo '// @codingStandardsIgnoreEnd'
echo ''
docker run -v "$(pwd)":/code dcycle/php-lint:2 --extensions=php,module,install,inc --standard=DrupalPractice /code
docker run -v "$(pwd)":/code dcycle/php-lint:2 --extensions=php,module,install,inc --standard=Drupal /code

File

scripts/php-lint.sh
View source
  1. #!/bin/bash
  2. #
  3. # Lint PHP code.
  4. #
  5. set -e
  6. echo '=> Linting PHP code.'
  7. echo 'If you are getting a false negative, use:'
  8. echo ''
  9. echo '// @codingStandardsIgnoreStart'
  10. echo '...'
  11. echo '// @codingStandardsIgnoreEnd'
  12. echo ''
  13. docker run -v "$(pwd)":/code dcycle/php-lint:2 --extensions=php,module,install,inc --standard=DrupalPractice /code
  14. docker run -v "$(pwd)":/code dcycle/php-lint:2 --extensions=php,module,install,inc --standard=Drupal /code