new core_file_for function identifies CoreFiles type from filename and evidence category 🟩

This commit is contained in:
Daniel Roth 2026-05-14 08:38:36 +00:00
parent 1a789ec609
commit 9adb467a02

View file

@ -65,6 +65,8 @@ _MATCHERS: list[tuple[Callable[[str], bool], str]] = [
def core_file_for(
filename: str, evidence_category: Optional[str] = None
) -> Optional[CoreFiles]:
if evidence_category is not None and evidence_category.lower() == "retrofit design":
return CoreFiles.RETROFIT_DESIGN_DOC
raise NotImplementedError