From b18775f36ceebbc9d6ce8e13a9c5518310e54787 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Thu, 21 May 2026 18:59:51 +0200 Subject: [PATCH] ci(knip): flip exports + types tiers to enforcing Drop the `--include files,dependencies,binaries,unlisted` scope on the Knip workflow. The tree is now at zero unused exports + zero unused types, so the gate enforces every issue type knip reports by default. The `knip.json` ignore-block documents the two muted surfaces (`src/components/ui/**` for shadcn parity, `src/lib/validations/**` for the contract-type API surface) so any new addition that breaks either invariant trips CI immediately. --- .github/workflows/knip.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/knip.yml b/.github/workflows/knip.yml index e04d8a904..c29f31024 100644 --- a/.github/workflows/knip.yml +++ b/.github/workflows/knip.yml @@ -29,15 +29,8 @@ jobs: - run: pnpm db:generate - # v1.4.41 W-PROCESS-DOCS — exports + types tier staged for - # promotion to enforcing. The W-SIMPLIFIER and W-INSIGHTS-HOT - # cleanup waves have not yet landed on develop at the time this - # comment was written (48 unused exports + 52 unused exported - # types still in the tree), so the gate remains scoped to - # files,dependencies,binaries,unlisted. Once those cleanup waves - # merge and `pnpm knip --reporter compact` reports zero unused - # exports + zero unused types, drop the `--include` flag below - # to flip exports + types to enforcing. See - # `.planning/phase-W-PROCESS-DOCS-v1441-report.md` for the - # promotion checklist and the rollback path. - - run: pnpm knip --reporter compact --include files,dependencies,binaries,unlisted + # v1.4.42 — exports + types tiers promoted to enforcing. The + # `knip.json` ignore-block carries the shadcn UI surface and the + # `src/lib/validations/**` contract types; everything else has + # to clear or get justified there. + - run: pnpm knip --reporter compact