MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / has_header

Function has_header

scripts/update_license_headers.py:212–214  ·  view source on GitHub ↗

Check if the SPDX header is present in the first 10 lines.

(lines: list[str])

Source from the content-addressed store, hash-verified

210
211
212def has_header(lines: list[str]) -> bool:
213 """Check if the SPDX header is present in the first 10 lines."""
214 return any(SPDX_MARKER in line for line in lines[:10])
215
216
217def find_insertion_point(lines: list[str], path: Path) -> int:

Callers 1

process_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected