(&self, path: &Path)
| 139 | } |
| 140 | |
| 141 | fn matches_include_patterns(&self, path: &Path) -> bool { |
| 142 | if self.config.include_patterns.is_empty() { |
| 143 | return true; |
| 144 | } |
| 145 | |
| 146 | // Normalize to forward slashes for consistent cross-platform glob matching |
| 147 | let path_str = path.to_string_lossy().replace('\\', "/"); |
| 148 | self.config.include_patterns.iter().any(|pattern| { |
| 149 | glob::Pattern::new(pattern) |
| 150 | .map(|p| p.matches(&path_str)) |
| 151 | .unwrap_or(false) |
| 152 | }) |
| 153 | } |
| 154 | |
| 155 | fn matches_exclude_patterns(&self, path: &Path) -> bool { |
| 156 | // Normalize to forward slashes for consistent cross-platform glob matching |
no test coverage detected