#!/bin/bash
## Description: Run PHPCS on the ai_governance module, matching GitLab CI's drupal-contrib-project ruleset (Drupal standard, same file extensions).
## Usage: phpcs-module [phpcs args...]
## Example: "ddev phpcs-module" or "ddev phpcs-module --report=summary"

set -e
cd /var/www/html
vendor/bin/phpcs web/modules/custom/ai_governance \
  --standard=Drupal \
  --extensions=engine,inc,info,install,module,php,profile,test,theme,yml \
  "$@"
