compare

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadResult

func LoadResult(path string) (*types.ScanResult, error)

func PrintTable

func PrintTable(r *Result)

Types

type FindingRef

type FindingRef struct {
	File    string `json:"file"`
	Line    int    `json:"line"`
	Rule    string `json:"rule"`
	Message string `json:"message"`
}

type Result

type Result struct {
	Baseline string `json:"baseline"`
	Current  string `json:"current"`

	NewFindings    []FindingRef `json:"new_findings"`
	FixedFindings  []FindingRef `json:"fixed_findings"`
	UnchangedCount int          `json:"unchanged_count"`
	ScoreChange    int          `json:"score_change"`
}

func Compare

func Compare(baseline, current *types.ScanResult) *Result

Jump to

Keyboard shortcuts

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