Skip to main content

apply_scope

Function apply_scope 

Source
pub fn apply_scope(
    report: &mut DuplicationReport,
    scope: &DuplicationScope<'_>,
    root: &Path,
)
Expand description

Narrow a duplication report to the scope of the run.

The CLI, the programmatic API and the MCP typed path call this one function, so a scope narrows the same way on every surface. Each filter keeps a clone group when at least one instance is in scope, and keeps every instance of that group: a reviewer sees the full clone family. The filters run in this order: changed files, the diff, the workspace roots.