report

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2024 License: GPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateSemgrepMetrics

func CalculateSemgrepMetrics(findings []SemgrepFinding) (map[string]int, []string, map[string]int)

func GenerateHTML

func GenerateHTML(reportData ReportData, outDir string) (string, error)

func SortFindings

func SortFindings(findings []SemgrepFinding)

Types

type ReportData

type ReportData struct {
	Target                     string
	VulnerabilityStats         map[string]int
	VulnerabilityStatsOrdering []string
	SeverityStats              map[string]int
	SeverityStatsOrdering      []string
	Findings                   []SemgrepFinding
}

type SemgrepFinding

type SemgrepFinding struct {
	VulnerabilityTitle string
	Severity           string
	Description        string
	Code               string
	StartLine          int
	StopLine           int
	GithubLink         string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL