name: no-vanity-metrics # Blocks reintroduction of codebase-state numbers (crate counts, test # counts, LOC, "N+ adapters", etc.) into READMEs and other Markdown # surfaces. Those numbers drift on every code change and create # permanent sync debt with the websites; the open-standards posture is # "describe the shape, not the size." See CONTRIBUTING.md for the # rationale and the opt-out marker. on: pull_request: paths: - '**/*.md' - '.github/workflows/no-vanity-metrics.yml' - 'scripts/check-no-vanity-metrics.sh' push: branches: - main paths: - '**/*.md' - '.github/workflows/no-vanity-metrics.yml' - 'scripts/check-no-vanity-metrics.sh' jobs: scan: name: Scan committed Markdown for vanity metrics runs-on: linux steps: - name: Checkout uses: actions/checkout@v4 - name: Run scanner run: bash scripts/check-no-vanity-metrics.sh