Skip to main content

build_guard_report

Function build_guard_report 

Source
pub fn build_guard_report(
    config: &ResolvedConfig,
    files: &[String],
) -> Result<GuardReport, GuardError>
Expand description

Build a typed guard report for one or more target files.

Paths may be project-relative or absolute under config.root. Returned paths are project-root-relative and use forward slashes.

ยงErrors

Returns GuardError::OutsideRoot for absolute paths outside the project root or relative paths containing parent-directory traversal.