MCPcopy Create free account
hub / github.com/FastLED/FastLED / should_visit_directory

Function should_visit_directory

ci/lint_cpp_rs/src/lib.rs:1739–1751  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

1737}
1738
1739fn 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
1753fn parent_has_cpp_no_lint_marker(path: &Path) -> bool {
1754 path.parent()

Callers 1

collect_directory_filesFunction · 0.85

Calls 1

starts_withMethod · 0.45

Tested by

no test coverage detected