feat: formal CLI for v2 report - #17
Merged
Merged
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
变更范围小且与既有 formal_v2 报告生成逻辑对齐,并新增了覆盖该命令的集成测试以验证输出契约。
Pull request overview
该 PR 为双因子 v2 的“正式验收前可审计报告入口”补齐了一个对应的命令行子命令 formal,使 formal_v2.generate_v2_formal_report() 能通过 CLI 直接输出(含 JSON),并补充了测试与文档/规划记录。
Changes:
- 新增
goratio formal子命令:生成并输出 v2 formal report(支持 JSON/文本、成本参数)。 - 增加 CLI 集成测试覆盖
formal命令的 JSON 输出关键字段。 - 更新 README/CHANGELOG/ROADMAP,补充命令用法与里程碑状态。
File summaries
| File | Description |
|---|---|
| tests/test_cli.py | 新增 formal 命令集成测试,校验返回码与 report 关键字段。 |
| src/goratio/cli.py | 注册 formal 子命令参数并在 main() 中调用 generate_v2_formal_report() 输出报告。 |
| README.md | 增加 goratio formal ... --json 使用示例。 |
| CHANGELOG.md | 在 Unreleased 新增条目中记录新增 formal CLI。 |
| .planning/ROADMAP.md | 更新路线图勾选项与测试数量统计。 |
Review details
- Files reviewed: 5/5 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
新增 formal 命令,输出双因子 v2 正式验收前报告。