Skip to main content

HealthReport

Struct HealthReport 

Source
pub struct HealthReport {
Show 23 fields pub findings: Vec<HealthFinding>, pub summary: HealthSummary, pub sections: Option<Vec<HealthSection>>, pub threshold_overrides: Vec<ThresholdOverrideState>, pub vital_signs: Option<VitalSigns>, pub health_score: Option<HealthScore>, pub file_scores: Vec<FileHealthScore>, pub coverage_gaps: Option<CoverageGaps>, pub prop_drilling_chains: Vec<PropDrillingChainFinding>, pub hotspots: Vec<HotspotFinding>, pub hotspot_summary: Option<HotspotSummary>, pub runtime_coverage: Option<RuntimeCoverageReport>, pub coverage_intelligence: Option<CoverageIntelligenceReport>, pub large_functions: Vec<LargeFunctionEntry>, pub targets: Vec<RefactoringTargetFinding>, pub target_thresholds: Option<TargetThresholds>, pub health_trend: Option<HealthTrend>, pub actions_meta: Option<HealthActionsMeta>, pub framework_health: Option<FrameworkHealthDiagnostics>, pub css_analytics: Option<CssAnalyticsReport>, pub styling_health: Option<StylingHealth>, pub styling_findings: Vec<StylingFinding>, pub render_fan_in_top: FxHashMap<PathBuf, (String, u32)>,
}
Expand description

Result of complexity analysis for reporting.

Fields§

§findings: Vec<HealthFinding>

Functions and synthetic template entries exceeding complexity thresholds, sorted by the –sort criteria. Each entry wraps its inner ComplexityViolation payload (flattened on the wire) with the typed actions list and an optional audit-mode introduced flag.

§summary: HealthSummary

Summary statistics.

§sections: Option<Vec<HealthSection>>

The sections that this run produced, in a fixed order. A renderer reads it to tell an empty section from a section that the run did not produce: findings is the complexity list only when complexity is in this array. The value set is OPEN (see HealthSection). Absent in an envelope from a fallow version before this member, and on a report that no health run built.

§threshold_overrides: Vec<ThresholdOverrideState>

Configured threshold override states. Entries are emitted for active exceptions, stale exceptions, and full-run no-match cleanup hints.

§vital_signs: Option<VitalSigns>

Project-wide vital signs (always computed from available data).

§health_score: Option<HealthScore>

Project-wide health score (only populated with --score).

§file_scores: Vec<FileHealthScore>

Per-file health scores. Only present when –file-scores is used. Sorted by risk-aware triage concern, combining low maintainability and high CRAP risk. Zero-function files (barrels) are excluded by default.

§coverage_gaps: Option<CoverageGaps>

Static coverage gaps.

Populated when coverage gaps are explicitly requested, or when the top-level health command allows config severity to surface them in the default report.

§prop_drilling_chains: Vec<PropDrillingChainFinding>

Located prop-drilling chains (React/Preact props forwarded unchanged through 3+ pass-through components). Only present when the opt-in prop-drilling rule is enabled (it defaults to off). Each entry carries the source, every pass-through hop, and the consumer with file + line + component, so CI / an agent can act. Surfaced alongside hotspots as a graph-derived health signal.

§hotspots: Vec<HotspotFinding>

Hotspot entries combining git churn with complexity. Only present when –hotspots is used. Sorted by score descending (highest risk first). Each entry wraps its inner HotspotEntry payload (flattened on the wire) with a typed actions list.

§hotspot_summary: Option<HotspotSummary>

Hotspot analysis summary.

Set whenever the run measured churn, which needs readable git history; --hotspots adds the per-file hotspots listing beside it rather than gating this summary.

§runtime_coverage: Option<RuntimeCoverageReport>

Runtime coverage findings from the paid sidecar (only populated with --runtime-coverage).

§coverage_intelligence: Option<CoverageIntelligenceReport>

Combined coverage, runtime, complexity, and change-scope verdicts.

§large_functions: Vec<LargeFunctionEntry>

Functions exceeding 60 LOC (very high risk). Only present when unit size very-high-risk bin >= 3%. Sorted by line count descending.

§targets: Vec<RefactoringTargetFinding>

Ranked refactoring recommendations. Only present when –targets is used. Sorted by efficiency (priority/effort) descending. Each entry wraps its inner RefactoringTarget payload (flattened on the wire) with a typed actions list.

§target_thresholds: Option<TargetThresholds>

Adaptive thresholds used for target scoring (only set with --targets).

§health_trend: Option<HealthTrend>

Health trend comparison against a previous snapshot (only set with --trend).

§actions_meta: Option<HealthActionsMeta>

Audit breadcrumb explaining systemic action-array adjustments. Present only when at least one adjustment was made (e.g., health finding suppression hints omitted because a baseline is active). When –group-by is active, each entry of groups may carry its own actions_meta describing the same omission so per-group consumers do not need to walk back to the report root.

§framework_health: Option<FrameworkHealthDiagnostics>

Optional framework-specific detector coverage. Present only when the health run already needed the dead-code analysis output.

§css_analytics: Option<CssAnalyticsReport>

Structural CSS analytics (specificity hotspots, !important density, over-complex selectors, deep nesting). Present only with --css.

§styling_health: Option<StylingHealth>

Styling-health score and letter grade: a SECOND health axis derived from the CSS analytics (the design-system axis), orthogonal to the JS/TS code health_score. Present only with --css (the same condition as css_analytics), so a plain fallow health run is byte-unchanged. The code score is never affected by this field.

§styling_findings: Vec<StylingFinding>

Advisory STYLING FINDINGS: the graduation of the descriptive css candidates into first-class, severity-aware, suppressible findings surfaced in fallow audit. Verdict-neutral by default (the rule defaults to warn); the styling domain’s OWN findings collection, not the dead-code AnalysisResults. Present only with --css; empty is skipped so a plain run is byte-unchanged.

§render_fan_in_top: FxHashMap<PathBuf, (String, u32)>

Per-file top render fan-in for the descriptive human drill-down only.

Trait Implementations§

Source§

impl Clone for HealthReport

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for HealthReport

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for HealthReport

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for HealthReport

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for HealthReport

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<'a, T> FromIn<'a, T> for T

Source§

fn from_in(t: T, _: &'a Allocator) -> T

Converts to this type from the input type within the given allocator.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<'a, T, U> IntoIn<'a, U> for T
where U: FromIn<'a, T>,

Source§

fn into_in(self, allocator: &'a Allocator) -> U

Converts this type into the (usually inferred) input type within the given allocator.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more