MCPcopy Create free account
hub / github.com/ddnet/ddnet / check_dir

Function check_dir

scripts/check_header_guards.py:62–72  ·  view source on GitHub ↗
(directory)

Source from the content-addressed store, hash-verified

60
61
62def check_dir(directory):
63 errors = 0
64 file_list = os.listdir(directory)
65 for file in file_list:
66 path = directory + file
67 if os.path.isdir(path):
68 if file not in ("external", "generated", "rust-bridge"):
69 errors += check_dir(path + "/")
70 elif file.endswith(".h") and file != "keynames.h":
71 errors += check_file(path)
72 return errors
73
74
75if __name__ == "__main__":

Callers 1

Calls 1

check_fileFunction · 0.70

Tested by

no test coverage detected