MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / iter_source_files

Function iter_source_files

scripts/sanitize-commit.py:78–90  ·  view source on GitHub ↗
(root: Path)

Source from the content-addressed store, hash-verified

76
77
78def iter_source_files(root: Path):
79 for d in SOURCE_DIRS:
80 base = root / d
81 if not base.is_dir():
82 continue
83 for path in base.rglob("*"):
84 if not path.is_file():
85 continue
86 if path.suffix not in SOURCE_EXTS:
87 continue
88 if path.name in SOURCE_SKIP:
89 continue
90 yield path
91
92
93def run_clang_format(root: Path) -> None:

Callers 1

run_clang_formatFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected