finding

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sort

func Sort(findings []Finding)

Types

type Finding

type Finding struct {
	RuleID      string   `json:"rule_id"`
	Severity    Severity `json:"severity"`
	Title       string   `json:"title"`
	Description string   `json:"description"`
	NHIContext  string   `json:"nhi_context"`
	FilePath    string   `json:"file_path"`
	LineStart   int      `json:"line_start"`
	LineEnd     int      `json:"line_end"`
	Evidence    string   `json:"evidence"`
	Fix         string   `json:"fix"`
	References  []string `json:"references"`
	Fingerprint string   `json:"fingerprint"`
}

func Filter

func Filter(findings []Finding, threshold Severity) []Finding

func (*Finding) ComputeFingerprint

func (f *Finding) ComputeFingerprint()

type Severity

type Severity int
const (
	SeverityInfo Severity = iota
	SeverityLow
	SeverityMedium
	SeverityHigh
	SeverityCritical
)

func ParseSeverity

func ParseSeverity(s string) (Severity, error)

func (Severity) String

func (s Severity) String() string

Jump to

Keyboard shortcuts

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