(path: &Path)
| 1737 | } |
| 1738 | |
| 1739 | fn should_visit_directory(path: &Path) -> bool { |
| 1740 | if !path.is_dir() { |
| 1741 | return true; |
| 1742 | } |
| 1743 | let Some(name) = path.file_name().and_then(|value| value.to_str()) else { |
| 1744 | return true; |
| 1745 | }; |
| 1746 | !name.starts_with(".build") |
| 1747 | && !matches!( |
| 1748 | name, |
| 1749 | "build" | ".venv" | ".cache" | "__pycache__" | "node_modules" |
| 1750 | ) |
| 1751 | } |
| 1752 | |
| 1753 | fn parent_has_cpp_no_lint_marker(path: &Path) -> bool { |
| 1754 | path.parent() |
no test coverage detected