INNER CODE UNIT · Python
local
dotnet/sdk · .github/scripts/check_vendored_files.py:119
local = REPO_ROOT / entry.local_path
if not local.is_file():
errors.append(f"{entry.id}: local_path does not exist: {entry.local_path}")
if not entry.sources:
errors.append(f"{entry.id}: must declare at least one source.")
if not isinstance(entry.area_labels, list):
errors.append(f"{entry.id}: area_labels must be a list.")
elif not all(isinstance(label, str) and label.strip() for label in entry.area_labels):
errors.append(f"{entry.id}: area_labels must contain only non-empty strings.")
elif ISSUE_LABEL in entry.area_labels:
errors.append(f"{entry.id}: area_labels must not repeat '{ISSUE_LABEL}'.")
for index, source in enumerate(entry.sources):
tag = f"{entry.id}#sources[{index}]"
if not re.match(r"^[\w.-]+/[\w.-]+$", source.repo):
errors.append(f"{tag}: invalid repo '{source.repo}' (expected owner/name).")