Skip to main content

Module dupes_output

Module dupes_output 

Source
Expand description

Shared duplication JSON payload contracts for programmatic consumers.

Structs§

AttributedCloneGroup
A clone group annotated with largest-owner attribution and per-instance owner keys.
AttributedCloneGroupFinding
Wire-shape envelope for an AttributedCloneGroup finding (per-bucket duplication attribution emitted under fallow dupes --group-by). Flattens the attributed group and carries the same typed CloneGroupAction array as CloneGroupFinding; no introduced field because fallow audit does not run on grouped output.
AttributedInstance
A clone instance plus its per-instance owner key (for inline JSON / SARIF rendering).
CloneFamilyFinding
Wire-shape envelope for a CloneFamily finding.
CloneGroupFinding
Wire-shape envelope for a CloneGroup finding. Flattens the bare group via #[serde(flatten)] and carries a typed actions array plus the optional audit-mode introduced flag. Replaces the legacy post-pass injection in crates/cli/src/report/json.rs::inject_dupes_actions.
DupesReportPayload
Wire-shape payload for fallow dupes --format json (the body that flattens into the DupesOutput envelope and is also emitted under the dupes / duplication key inside the combined and audit envelopes).
DuplicationGroup
A single grouped duplication bucket. Per-group stats are dedup-aware and computed over the FULL group BEFORE any --top truncation.
DuplicationGrouping
Wrapper carrying the resolver mode label and grouped buckets.

Functions§

build_duplication_codeclimate
Build CodeClimate issues from duplication analysis results.