Skip to main content

scan_with_path_filter_overrides

Function scan_with_path_filter_overrides 

Source
pub fn scan_with_path_filter_overrides(
    path: &Path,
    options: &ScanOptions,
    include_patterns: &[String],
    exclude_patterns: &[String],
) -> Result<ScanReport>
Expand description

Run a complete scan with optional include/exclude patterns layered on top of the scan configuration.

The override form is used by the CLI so command-line path filters affect the adapter and detector execution, while keeping ScanOptions source compatible for library callers that construct it directly.