Check if the SPDX header is present in the first 10 lines.
(lines: list[str])
| 210 | |
| 211 | |
| 212 | def 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 | |
| 217 | def find_insertion_point(lines: list[str], path: Path) -> int: |