pub fn check_reported_path(path: &str) -> Result<(), ExecError>Expand description
Reject a reported path that is absolute or climbs out of the worktree.
A finding is a claim about a file in the analyzed tree. A report that names
/etc/shadow or ../../secrets is either broken or hostile, and either way
its claim cannot be checked, so it is refused rather than stored.
ยงErrors
Returns ExecError::PathEscapesWorktree for an empty, absolute, prefixed or
parent-climbing path.