Skip to main content

Module health

Module health 

Source
Expand description

Command-neutral health execution options and runners.

Modules§

ownership
Ownership risk analysis for hotspot files.
scoring
styling_score
Styling-health score: a SECOND health axis derived purely from the structural CSS analytics (CssAnalyticsReport), orthogonal to the JS/TS code-health score. Mirrors the code-score shape (vital_signs::compute_health_score): start at 100, subtract capped per-category penalties, map the result to a letter grade via the shared letter_grade. The code score is never touched.

Structs§

ComplexityRunOptions
Normalized programmatic complexity / health inputs shared by API, NAPI, and engine-backed runners.
ComplexitySectionOptions
Input for deriving effective programmatic complexity sections.
DerivedComplexityOptions
Derived section selection for programmatic health / complexity runs.
DerivedHealthSections
Derived section selection for health runs.
HealthAnalysisResult
Typed health analysis result shared by CLI, API, NAPI, and future embedders.
HealthCoverageInputs
Command-neutral Istanbul coverage inputs for health CRAP scoring.
HealthExecutionOptions
Command-neutral inputs needed to execute a health analysis.
HealthGateOptions
Command-neutral health exit gate options.
HealthPipelineInputs
Discovery / parse inputs the CLI resolves before calling the engine.
HealthRunOptions
Normalized health inputs shared by CLI, API, NAPI, and future runners.
HealthRunOptionsInput
Command-neutral inputs used to normalize a health run before it reaches a concrete runner.
HealthScopeInputs
Scope inputs the CLI resolves before calling the engine.
HealthSeams
CLI-supplied callbacks the command-neutral health pipeline needs.
HealthSectionOptions
Input for deriving effective health sections from command-neutral flags.
HealthSharedParseData
Pre-parsed health input reused from another analysis in the same process.
HealthThresholdOverrides
Command-neutral threshold overrides for health complexity findings.
RuntimeCoverageOptions
Command-neutral runtime coverage input for health analysis.
RuntimeCoverageSeamInput
Inputs the runtime coverage seam needs from the analysis core.
StylingAnalysisArtifacts
Session-owned styling inputs that can be reused by health, audit, and future editor surfaces without rebuilding every source reference corpus.

Enums§

HealthSort
Command-neutral sort criteria for health complexity findings.
NoGroupResolver
Placeholder grouping resolver for runs without --group-by (the programmatic API path). Constructed only as None, so its methods are never invoked.

Traits§

HealthGroupResolver
Command-neutral grouping resolver contract for --group-by health output.

Functions§

derive_complexity_sections
Derive effective programmatic health / complexity section flags.
derive_health_run_options
Normalize health run inputs into the engine-owned run contract.
derive_health_sections
Derive effective health section flags for CLI and embedders.
execute_health_inner
Run the command-neutral health analysis pipeline.
run_ungrouped_health
Run health analysis without a presentation grouping resolver.
run_ungrouped_health_with_session
Run health analysis from an existing analysis session.
run_ungrouped_health_with_session_artifacts
Run health analysis from an existing analysis session and retained dead-code artifacts.
shared_parse_data_from_artifacts
Build health shared parse data from retained dead-code artifacts.
should_precompute_dead_code_analysis
Return true when health sections will need dead-code analysis artifacts.
validate_coverage_root_absolute
Validate that a coverage-data root is absolute under Unix or Windows path conventions.
validate_health_churn_file
Validate an explicit --churn-file up front so a malformed import is a loud hard error rather than a silent hotspot skip. Runs before the pipeline, and only when churn would actually be consumed (--hotspots / --targets; --ownership is subsumed because the dispatch layer sets hotspots = hotspots || ownership before building HealthExecutionOptions), so an inert --churn-file on a non-churn run is not penalized.

Type Aliases§

RuntimeCoverageAnalyzer
Runtime coverage analysis seam.