quality-gate

仓库创建 2026年4月15日最近提交 21 天前SkillHot 收录 21 天前
▸ 精选理由

把质量门槛自动化为必过条件,保证代码稳定性。

▸ 风险提示

绑定 .NET 工具链与高覆盖率阈值可能阻塞CI,需要配置

这个 Skill 做什么

在每个阶段强制执行构建失败即警告、95% 覆盖率的测试门禁。

每个产出代码的阶段都要过质量门:构建不能有警告当作错误(-warnaserror),测试加上覆盖率要达到 95% 才能通过。任何阶段在标注为 [DONE] 前都必须跑构建和收集覆盖报告,失败要回报 [BLOCKED] 并给出失败路径。目的是早发现回归并强制高覆盖、严格构建规则,避免用临时放宽规则掩盖问题。

▸ 展开 SKILL.md 英文原文

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.

开发编程构建门禁覆盖率.NET通用
0
Stars
0
Forks
40
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/Codebrew-company/CodebrewRouter/master/.agents/skills/quality-gate/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/Codebrew-company/CodebrewRouter/master/.agents/skills/quality-gate/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# 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 li
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有