Skip to main content

build_duplication_json

Function build_duplication_json 

Source
pub fn build_duplication_json(
    report: &DuplicationReport,
    root: &Path,
    elapsed: Duration,
    explain: bool,
) -> Result<Value, Error>
Expand description

Build the JSON envelope + duplication payload shared by print_duplication_json and the programmatic API surface.

ยงErrors

Returns an error if the report cannot be serialized to JSON.