Skip to main content

HealthAnalysisResult

Struct HealthAnalysisResult 

Source
pub struct HealthAnalysisResult<GroupResolver = ()> {
    pub report: HealthReport,
    pub type_aware_meta: Option<TypeAwareMeta>,
    pub branching_by_file: BranchingByFile,
    pub grouping: Option<HealthGrouping>,
    pub group_resolver: Option<GroupResolver>,
    pub config: ResolvedConfig,
    pub workspace_diagnostics: Vec<WorkspaceDiagnostic>,
    pub elapsed: Duration,
    pub timings: Option<HealthTimings>,
    pub coverage_gaps_has_findings: bool,
    pub should_fail_on_coverage_gaps: bool,
    pub changed_files_analyzed: Option<Vec<PathBuf>>,
}
Expand description

Typed health analysis result shared by CLI, API, NAPI, and future embedders.

The result contract belongs at the engine boundary so downstream callers can depend on a command-neutral shape.

Fields§

§report: HealthReport

The assembled health report for the active run scope.

§type_aware_meta: Option<TypeAwareMeta>

Optional TypeScript semantic metadata for advisory health overlays.

§branching_by_file: BranchingByFile

Per-file branching totals, keyed by absolute path.

Threshold-blind and suppression-blind, unlike report, which holds only units that breached a threshold. The audit compares this map across the base and head revisions; nothing else reads it, and it is not serialized, so it carries no schema version.

§grouping: Option<HealthGrouping>

Per-group health output when grouping is active.

None for the default run; Some for any grouped invocation. The top-level report reflects the active run scope; consumers that want per-group metrics read from grouping.groups.

§group_resolver: Option<GroupResolver>

Optional grouping resolver retained by callers that need to tag findings after analysis without rediscovering ownership or package metadata.

§config: ResolvedConfig

Resolved config the run executed under.

§workspace_diagnostics: Vec<WorkspaceDiagnostic>

Diagnostics from workspace discovery (undeclared or invalid members).

§elapsed: Duration

Total wall time of the health run.

§timings: Option<HealthTimings>

Per-phase timings, when the run measured them.

§coverage_gaps_has_findings: bool

True when the coverage gaps section produced findings.

§should_fail_on_coverage_gaps: bool

True when coverage gap findings should fail the run (the gate is enforced rather than advisory).

§changed_files_analyzed: Option<Vec<PathBuf>>

The changed files the run analyzed, when a changed-file set narrowed it: the files of that set that discovery kept. None when the run was not narrowed by changed files. Callers size a changed-since scope from it.

Implementations§

Source§

impl<GroupResolver> HealthAnalysisResult<GroupResolver>

Source

pub fn without_group_resolver(self) -> HealthAnalysisResult<()>

Drop presentation-only grouping resolver state while preserving the command-neutral health analysis payload.

Trait Implementations§

Source§

impl<GroupResolver: Debug> Debug for HealthAnalysisResult<GroupResolver>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<GroupResolver> Freeze for HealthAnalysisResult<GroupResolver>
where Option<GroupResolver>: Freeze,

§

impl<GroupResolver> RefUnwindSafe for HealthAnalysisResult<GroupResolver>
where Option<GroupResolver>: RefUnwindSafe,

§

impl<GroupResolver> Send for HealthAnalysisResult<GroupResolver>
where Option<GroupResolver>: Send,

§

impl<GroupResolver> Sync for HealthAnalysisResult<GroupResolver>
where Option<GroupResolver>: Sync,

§

impl<GroupResolver> Unpin for HealthAnalysisResult<GroupResolver>
where Option<GroupResolver>: Unpin,

§

impl<GroupResolver> UnsafeUnpin for HealthAnalysisResult<GroupResolver>
where Option<GroupResolver>: UnsafeUnpin,

§

impl<GroupResolver> UnwindSafe for HealthAnalysisResult<GroupResolver>
where Option<GroupResolver>: UnwindSafe,

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> 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<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
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> Same for T

Source§

type Output = T

Should always be Self
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