MCPcopy Index your code
hub / github.com/microsoft/playwright-python / main

Function main

utils/linting/check_file_header.py:53–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51
52
53def main() -> None:
54 errors: List[str] = []
55
56 for file_path in sys.argv[1:]:
57 try:
58 file_has_license(file_path)
59 except Exception as e:
60 errors.append(str(e))
61
62 if errors:
63 print("Missing license header in files:")
64 for error in errors:
65 print(" -", error)
66 sys.exit(1)
67
68
69if __name__ == "__main__":

Callers 1

Calls 2

file_has_licenseFunction · 0.85
appendMethod · 0.80

Tested by

no test coverage detected