Skip to main content

strip_root_prefix

Function strip_root_prefix 

Source
pub fn strip_root_prefix(value: &mut Value, prefix: &str)
Expand description

Recursively strip a project-root prefix from all string values in a JSON tree.

This keeps machine output relative to the analyzed root even when upstream analysis stages temporarily carry absolute paths.