Skip to main content

Module programmatic

Module programmatic 

Source
Expand description

Programmatic Rust API reused by the NAPI bindings.

Structs§

AnalysisOptions
Shared options for all one-shot analyses.
ComplexityOptions
Options for complexity / health analysis.
DeadCodeFilters
Issue-type filters for the dead-code analysis.
DeadCodeOptions
Options for dead-code-oriented analyses.
DuplicationOptions
Options for duplication analysis.
ProgrammaticError
Structured error surface for the programmatic API.

Enums§

ComplexitySort
Sort criteria for complexity findings.
DuplicationMode
Programmatic duplication mode selection.
OwnershipEmailMode
Privacy mode for ownership-aware hotspot output.
TargetEffort
Effort filter for refactoring targets.

Functions§

compute_complexity
Run the health / complexity analysis and return the CLI JSON contract as a value.
compute_health
Alias for compute_complexity with a more product-oriented name.
detect_boundary_violations
Run the boundary-violation analysis and return the standard dead-code JSON envelope filtered down to the boundary_violations category.
detect_circular_dependencies
Run the circular-dependency analysis and return the standard dead-code JSON envelope filtered down to the circular_dependencies category.
detect_dead_code
Run the dead-code analysis and return the CLI JSON contract as a value.
detect_duplication
Run the duplication analysis and return the CLI JSON contract as a value.