Skip to main content

Module viz

Module viz 

Source
Expand description

Typed data contract and builder for fallow viz.

The CLI runs one project analysis (dead code + duplication + complexity) through crate::session::AnalysisSession and hands the retained artifacts to build_viz_data. The resulting VizData is embedded as JSON in the self-contained interactive HTML the viz command writes.

The contract is engine-owned so the graph internals never leak past the engine boundary: everything the frontend needs is resolved to file indices, relative paths, and plain counts here.

Structs§

VizAvailability
Count contract and availability for one analysis family.
VizBuildInput
Everything build_viz_data needs from one project analysis run.
VizCloneGroup
One clone group resolved to file indices.
VizCloneInstance
One location of a duplicated block.
VizData
Serialized payload embedded in the viz HTML.
VizFile
One analyzed source file.
VizFinding
Stable presentation record shared by finding-oriented Viz families.
VizFindingAction
One stable action projected from an analyzer-specific record.
VizFindingAnalysis
One finding-oriented analysis family.
VizFindingFact
One stable scalar fact from an analyzer-specific record.
VizFrameworkData
Framework findings plus detector capability metadata.
VizFrameworkDetector
Status of one framework-specific detector.
VizFunction
One function inside a file, with its complexity metrics.
VizHealthCapabilities
Availability of the individual Health signal families.
VizHealthData
Health lens payload populated after the shared health runner completes.
VizHealthFile
Real file-health metrics.
VizSecurityBlindSpot
Explicitly counted security blind spot.
VizSecurityCandidate
Static security candidate. The record deliberately contains no exploitability verdict.
VizSecurityData
Security lens payload. Runtime evidence is a separate capability from the always-local static candidate pass.
VizSecurityEndpoint
One endpoint in a typed Security taint flow.
VizSecurityTaintFlow
Typed source-to-sink flow summary.
VizSecurityTraceHop
One hop in a static security trace.
VizStylingData
Styling findings plus the project-level CSS analytics and score.
VizSummary
Project-wide totals for the header stat boxes.
VizViolation
One boundary violation resolved to file indices.
VizWorkspace
One discovered workspace.
VizZone
One configured boundary zone.

Enums§

VizAvailabilityState
Honest availability state for one Viz analysis family.
VizFileStatus
Dead-code status of a file, ordered by severity in the frontend.

Functions§

apply_health_report
Populate Health, Framework diagnostics, and Styling from the health runner that consumed the same session artifacts.
build_viz_data
Build the viz payload from one project analysis run.