#!/usr/bin/env bash
# scripts/qa/ecs-check - Run Easy Coding Standard checks
set -euo pipefail

# Scope mirrors CI (.gitlab-ci.yml ecs job: "ecs check src/ tests/") so a
# locally green run means the CI lint stage cannot fail on path coverage
# (pipeline 15084 burned a retry on this mismatch).
docker compose exec --user=application -w /app app_server \
    env SKIP_DB_RESTORE=1 ./vendor-bin/ecs/vendor/bin/ecs check src/ tests/
