Skip to content

Commit f4901dc

Browse files
committed
feat: Remove Rule column from findings table for cleaner display
Removes the Rule column from findings table to simplify the view and reduce redundancy with the Message column. Rule ID is still available in: - Detailed finding view (ff finding show <run-id> --id <finding-id>) - By-rule grouping command (ff findings by-rule <run-id> --rule <rule-id>) Changes: - Removed 'Rule' column from table structure - Removed rule_text extraction and styling logic - Expanded Message column from 35 to 50 chars (more space available) - Expanded Location column from 18 to 20 chars - Table now shows: ID | Severity | Message | Found By | Location Benefits: - Cleaner, more scannable table - Message column has more room to show details - Less visual clutter while maintaining all functionality
1 parent 1bbaf18 commit f4901dc

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

cli/src/fuzzforge_cli/commands/findings.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -600,10 +600,9 @@ def display_findings_table(findings_data: Dict[str, Any], limit: Optional[int] =
600600
results_table = Table(box=box.ROUNDED)
601601
results_table.add_column("ID", width=10, justify="left", style="dim")
602602
results_table.add_column("Severity", width=10, justify="left", no_wrap=True)
603-
results_table.add_column("Rule", width=18, justify="left", style="bold cyan", no_wrap=True)
604-
results_table.add_column("Message", width=35, justify="left", no_wrap=True)
603+
results_table.add_column("Message", width=50, justify="left", no_wrap=True)
605604
results_table.add_column("Found By", width=15, justify="left", style="yellow", no_wrap=True)
606-
results_table.add_column("Location", width=18, justify="left", style="dim", no_wrap=True)
605+
results_table.add_column("Location", width=20, justify="left", style="dim", no_wrap=True)
607606

608607
for finding in paginated_findings:
609608
if is_native:
@@ -649,11 +648,8 @@ def display_findings_table(findings_data: Dict[str, Any], limit: Optional[int] =
649648
severity_text = Text(severity.upper(), style=severity_style(severity))
650649

651650
# Truncate long text
652-
rule_text = Text(rule_id)
653-
rule_text.truncate(18, overflow="ellipsis")
654-
655651
message_text = Text(message)
656-
message_text.truncate(35, overflow="ellipsis")
652+
message_text.truncate(50, overflow="ellipsis")
657653

658654
found_by_text = Text(found_by)
659655
found_by_text.truncate(15, overflow="ellipsis")
@@ -664,7 +660,6 @@ def display_findings_table(findings_data: Dict[str, Any], limit: Optional[int] =
664660
results_table.add_row(
665661
finding_id,
666662
severity_text,
667-
rule_text,
668663
message_text,
669664
found_by_text,
670665
location_text

0 commit comments

Comments
 (0)