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

Function main

scripts/expand-doxygen.py:76–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74
75
76def main() -> int:
77 rewrote = 0
78 for path in iter_files():
79 try:
80 text = path.read_text(encoding="utf-8")
81 except UnicodeDecodeError:
82 continue
83 new_text = expand(text)
84 if new_text != text:
85 path.write_text(new_text, encoding="utf-8", newline="")
86 rewrote += 1
87
88 print(f"[expand-doxygen] rewrote {rewrote} file(s)", file=sys.stderr)
89 return 0
90
91
92if __name__ == "__main__":

Callers 1

expand-doxygen.pyFile · 0.70

Calls 2

iter_filesFunction · 0.85
expandFunction · 0.85

Tested by

no test coverage detected