baseline

package
v0.1.42 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Baseline

type Baseline struct {
	Suppress []SuppressEntry `yaml:"suppress"`
	Require  []RequireEntry  `yaml:"require"`
}

func Load

func Load(path string) (*Baseline, error)

func (*Baseline) Apply

func (b *Baseline) Apply(findings []core.Finding) (filtered []core.Finding, missing []string, suppressed int)

type RequireEntry

type RequireEntry struct {
	Fingerprint string `yaml:"fingerprint,omitempty"`
	RuleID      string `yaml:"rule_id,omitempty"`
	File        string `yaml:"file,omitempty"`
	Reason      string `yaml:"reason"`
}

type SuppressEntry

type SuppressEntry struct {
	Fingerprint string `yaml:"fingerprint"`
	Reason      string `yaml:"reason"`
}

Jump to

Keyboard shortcuts

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