Skip to main content

fallow_output/
health_actions.rs

1/// Auditable breadcrumb recording when health-finding `suppress-line`
2/// action hints were omitted from the report.
3///
4/// Set at construction time on `HealthReport::actions_meta` (and on
5/// each `HealthGroup::actions_meta`
6/// when grouped) by the report builder, derived from the active
7/// `HealthActionContext`. Lets consumers see "where did the
8/// suppress-line hints go?" without having to grep the config or CLI
9/// history.
10///
11/// Stable `reason` codes:
12/// - `baseline-active`: a baseline is active and inline ignores would
13///   become dead annotations once the baseline regenerates.
14/// - `config-disabled`: `health.suggestInlineSuppression` is `false`.
15/// - `unspecified`: the caller did not record a reason.
16#[derive(Debug, Clone, serde::Serialize)]
17#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
18pub struct HealthActionsMeta {
19    /// Always `true` when the breadcrumb is emitted. Absent from the wire when
20    /// no suppression occurred.
21    pub suppression_hints_omitted: bool,
22    /// Stable code describing why the suppression occurred.
23    pub reason: String,
24    /// Scope of the omission. Always `"health-findings"` today.
25    pub scope: String,
26}