Skip to content

Add HTML report output (--html-report) - #62

Open
qiaobochi040726-source wants to merge 2 commits into
BreachDirect:mainfrom
qiaobochi040726-source:20260806-html-report
Open

Add HTML report output (--html-report)#62
qiaobochi040726-source wants to merge 2 commits into
BreachDirect:mainfrom
qiaobochi040726-source:20260806-html-report

Conversation

@qiaobochi040726-source

Copy link
Copy Markdown
Contributor

Fixes #25

  • report.py:新增 to_html() 生成自包含 HTML 报告(内嵌 <style>,无外部依赖):pass/fail 结论徽章、阈值、per-tool 汇总(含 severity 计数)、findings 表、工具错误列表;所有动态文本 html.escape
  • cli.py:新增 --html-report PATH,与 --json-report/--md-report 并存
  • 测试 +3:关键内容、特殊字符转义(<>&')、CLI 写文件接线

验证:pytest 18 passed(基线 15+3);手动生成 build/report.html 完整可读(DOCTYPE/style/闭合齐全,gitignored 未入库)。

qiaobochi040726-source and others added 2 commits August 6, 2026 05:17
Self-contained styled HTML report with pass/fail conclusion, threshold, per-tool summary, findings table, and tool errors. All dynamic text html-escaped. Adds --html-report CLI flag and tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add HTML report output

2 participants