Documentation
¶
Overview ¶
Package report provides functionality to generate various types of reports.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateReport ¶
GenerateReport creates a report in the specified format (json, html).
Types ¶
type Issue ¶
type Issue struct {
RuleID string `json:"rule_id"`
Title string `json:"title"`
Description string `json:"description"`
Severity SeverityLevel `json:"severity"`
File string `json:"file"`
Line int `json:"line"`
Code string `json:"code"`
Package string `json:"package"`
Reference string `json:"reference,omitempty"`
Suggestion string `json:"suggestion,omitempty"`
}
Issue represents a single security/code issue found during analysis.
type ReportData ¶
type ReportData struct {
Summary Summary `json:"summary"`
Issues []Issue `json:"issues"`
GeneratedAt string `json:"generated_at"`
}
ReportData represents the full report structure.
type SeverityLevel ¶
type SeverityLevel string
SeverityLevel defines the level of issue severity.
const ( SeverityCritical SeverityLevel = "CRITICAL" SeverityHigh SeverityLevel = "HIGH" SeverityMedium SeverityLevel = "MEDIUM" SeverityLow SeverityLevel = "LOW" SeverityInfo SeverityLevel = "INFO" )
Click to show internal directories.
Click to hide internal directories.