pub fn is_excluded(path: &Path, patterns: &[String]) -> bool
Check if a path should be excluded based on patterns