From fe2afe31a1ebf5b8c536d8337592a6246f272e22 Mon Sep 17 00:00:00 2001 From: Capton1 Date: Fri, 7 Nov 2025 14:02:21 +0700 Subject: [PATCH] feat: make finding reports having the fuzzforge styling and colors --- cli/src/fuzzforge_cli/commands/findings.py | 834 +++++++++++++++------ 1 file changed, 622 insertions(+), 212 deletions(-) diff --git a/cli/src/fuzzforge_cli/commands/findings.py b/cli/src/fuzzforge_cli/commands/findings.py index ea5a536..7eada20 100644 --- a/cli/src/fuzzforge_cli/commands/findings.py +++ b/cli/src/fuzzforge_cli/commands/findings.py @@ -1115,18 +1115,18 @@ def export_to_html(findings_data: Dict[str, Any], output_path: Path, run_id: str location_str += f":{line_start}" severity_badge = { - "critical": 'CRITICAL', - "high": 'HIGH', - "medium": 'MEDIUM', - "low": 'LOW', - "info": 'INFO' - }.get(severity, 'INFO') + "critical": 'CRITICAL', + "high": 'HIGH', + "medium": 'MEDIUM', + "low": 'LOW', + "info": 'INFO' + }.get(severity, 'INFO') confidence_badge = { - "high": 'High', - "medium": 'Medium', - "low": 'Low' - }.get(confidence, 'Medium') + "high": 'High', + "medium": 'Medium', + "low": 'Low' + }.get(confidence, 'Medium') type_icon = { "llm": "🤖", @@ -1138,33 +1138,31 @@ def export_to_html(findings_data: Dict[str, Any], output_path: Path, run_id: str # Build details HTML details_html = f"""