Documentation
¶
Overview ¶
Package ignore reads .lockvetignore files: acknowledged findings that should stop tripping -fail-on gates without turning the gate off.
One rule per line. Blank lines and #-comments are skipped; a trailing "# reason" on a rule line is encouraged. Rules:
GHSA-xxxx-xxxx-xxxx ignore one advisory wherever it appears lodash ignore every finding for a package lodash@4.17.21 … only while a specific version is incoming fresh:aws-sdk-go-v2 ignore one finding kind for a package major:react@19.* accept a specific major bump GHSA-xxxx-xxxx-xxxx until=2026-12-31 temporary, expires loudly
Kinds: vuln, fresh, deprecated, unlisted, typosquat, scripts, provenance, integrity, registry, license, major, downgrade. Package names and advisory IDs match case-insensitively and accept * and ? globs. Suppressed findings stay in the JSON output (ignored / ignored_vulns) and appear as a dim marker in reports, but no longer count toward the summary or -fail-on.
Index ¶
Constants ¶
const DefaultName = ".lockvetignore"
DefaultName is the filename discovered automatically.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rule ¶
type Rule struct {
Raw string // the line as written (comment stripped)
Line int
Kind string // "" = all kinds; otherwise a canonical kind
Until time.Time // zero = never expires
// contains filtered or unexported fields
}
Rule is one parsed .lockvetignore line.