Loading...
Loading...
Compare original and translation side by side
pre-merge-report.mdcode-review-securitypython-backend-expertreact-frontend-expertsystem-architecturee2e-testingpre-merge-report.mdcode-review-securitypython-backend-expertreact-frontend-expertsystem-architecturee2e-testingscripts/run-all-checks.shscripts/run-all-checks.shundefinedundefined
**TypeScript/React (eslint + prettier):**
```bash
**TypeScript/React(eslint + prettier):**
```bash
**Pass criteria:**
- Zero lint errors (warnings are tolerated only with justification)
- All files formatted consistently
- No `# noqa` or `eslint-disable` without a comment explaining why
**通过标准:**
- 无代码规范错误(仅在有合理理由时可容忍警告)
- 所有文件格式一致
- 无未附带解释注释的`# noqa`或`eslint-disable`指令mypy app/ --strict --no-error-summarynpx tsc --noEmitscripts/type-check.shtype: ignore@ts-ignoreAnymypy app/ --strict --no-error-summarynpx tsc --noEmitscripts/type-check.shtype: ignore@ts-ignoreAnypytest tests/ -q --tb=shortnpm test -- --run --reporter=verbosepytest tests/ -q --tb=shortnpm test -- --run --reporter=verbosepytest --cov=app --cov-report=term-missing --cov-fail-under=80npx vitest run --coverage --coverage.thresholds.lines=80pytest --cov=app --cov-report=term-missing --cov-fail-under=80npx vitest run --coverage --coverage.thresholds.lines=80undefinedundefined
**Pass criteria:**
- No critical or high severity vulnerability in dependencies
- No critical findings in code scan
- All new endpoints have authentication checks
---
**通过标准:**
- 依赖项中无严重或高危漏洞
- 代码扫描中无严重问题
- 所有新增端点均有认证检查
---Anylist[User]listAnylist[User]listscripts/accessibility-check.shscripts/accessibility-check.sh| Finding Type | Action | Can Override? |
|---|---|---|
| Lint/format error | Fix before merge | No |
| Type error | Fix before merge | No |
| Test failure | Fix before merge | No |
| Coverage below threshold | Add tests or justify | Yes, with tech lead approval |
| Security finding (critical/high) | Fix before merge | No |
| Security finding (medium/low) | Fix or create follow-up ticket | Yes, with ticket reference |
| Accessibility violation | Fix or create follow-up ticket | Yes, with justification |
| Performance concern | Discuss in PR, may defer | Yes, with tech lead approval |
| 问题类型 | 操作 | 是否可例外? |
|---|---|---|
| 代码规范/格式错误 | 合并前修复 | 否 |
| 类型错误 | 合并前修复 | 否 |
| 测试失败 | 合并前修复 | 否 |
| 覆盖率低于阈值 | 添加测试或提供理由 | 是,需技术负责人批准 |
| 安全问题(严重/高危) | 合并前修复 | 否 |
| 安全问题(中危/低危) | 修复或创建后续工单 | 是,需关联工单 |
| 无障碍违规 | 修复或创建后续工单 | 是,需提供理由 |
| 性能问题 | 在PR中讨论,可延迟处理 | 是,需技术负责人批准 |
undefinedundefined
Overrides are never acceptable for:
- Critical security vulnerabilities
- Broken tests
- Type errors that mask bugs
以下情况绝不允许例外:
- 严重安全漏洞
- 测试失败
- 隐藏bug的类型错误undefinedundefinedundefinedundefined./scripts/run-all-checks.sh --output-dir ./pr-review./scripts/run-all-checks.sh --output-dir ./pr-reviewpre-merge-report.mdundefinedpre-merge-report.mdundefined| Check | Status | Details |
|---|---|---|
| Linting (ruff) | PASS | No issues |
| Type check (mypy) | PASS | No errors |
| Tests (pytest) | PASS | 142 passed, 0 failed |
| Coverage | PASS | 85% (threshold: 80%) |
| Frontend lint | PASS | No issues |
| Frontend types | PASS | No errors |
| Check | Status | Details |
|---|---|---|
| Linting (ruff) | PASS | No issues |
| Type check (mypy) | PASS | No errors |
| Tests (pytest) | PASS | 142 passed, 0 failed |
| Coverage | PASS | 85% (threshold: 80%) |
| Frontend lint | PASS | No issues |
| Frontend types | PASS | No errors |
undefinedundefined