baseline

package
v0.1.76 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 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 {
	Suppressions []SuppressEntry `yaml:"suppress"`
	Require      []RequireEntry  `yaml:"require"`
}

func Load

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

func (*Baseline) CheckRequired added in v0.1.45

func (b *Baseline) CheckRequired(findings []core.Finding) []string

CheckRequired returns descriptions of required findings that are absent from findings.

func (*Baseline) Suppress

func (b *Baseline) Suppress(findings []core.Finding) ([]core.Finding, int)

Suppress removes findings that match a suppress entry. Returns filtered slice and count.

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