#!/bin/bash #ddev-generated ## Command provided by https://github.com/ddev/ddev-drupal-contrib ## Description: Run phpcs inside the web container ## Usage: phpcs [flags] [args] ## Example: "ddev phpcs" or "ddev phpcs -n" ## ExecRaw: true if ! command -v phpcs >/dev/null; then echo "phpcs is not available. You may need to 'ddev composer install'" exit 1 fi test -e phpcs.xml.dist || curl -OL https://git.drupalcode.org/project/gitlab_templates/-/raw/default-ref/assets/phpcs.xml.dist phpcs -s --report-full --report-summary --report-source web/modules/custom --ignore=*/.ddev/* "$@"