Documentation
¶
Overview ¶
Package suppress is the fourth pipeline stage: it alone decides whether a candidate is suppressed (test keys, inline allows, allowlists, ignore files, baselines) and records the reason.
Index ¶
Constants ¶
const Default = "default"
Default is the name of the default suppressor.
const ReasonTestKey = "test_key"
ReasonTestKey is the suppression reason for generated test keys (AD-16).
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
// IncludeTestKeys keeps findings from generated test keys unsuppressed.
IncludeTestKeys bool
}
Options configures a suppressor.
type Suppressor ¶
Suppressor is the suppress stage interface. Suppress decides, from the predicates detect precomputed, whether the candidate is suppressed, and sets only the Finding's Suppressed and SuppressionReason fields.