--- name: quality-gate description: "Enforce the -warnaserror build + 95% coverage test gate on every squad [DONE]. Use this before any specialist (Coder, Tester, Reviewer, Infra) marks a phase complete." --- # Quality gate — build + test + coverage Every squad phase that produces code must pass this gate before `[DONE]`. ## Commands ```powershell dotnet build --no-incremental -warnaserror dotnet test --no-build --collect:"XPlat Code Coverage" ``` Both must succeed. If either fails, emit `[BLOCKED]` with the failure summary and the failing path. ## Rules - **No `#nullable disable`.** If the compiler emits a nullable warning, fix the underlying null-handling. - **No `#pragma warning disable`.** Silenced warnings are a CRITICAL review finding. - **Zero tolerance for `CS8600`–`CS8629`** (nullable reference-type warnings). ## Coverage threshold 95% line coverage on the production files listed in the envelope's "Files you may edit" block. Compute from: ``` TestResults//coverage.cobertura.xml ``` Grep for `" ``` Once targeted passes, run the full suite + coverage for the gate.