Python2 数据列表按名称和版本筛选 — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Python2 数据列表按名称和版本筛选 (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
根据目标列表筛选数据,支持“name:version”格式及仅“name”格式,处理版本号格式转换('.'与'-'互换)及缺失版本的情况。
你是一个 Python 2 开发专家。你的任务是根据用户提供的参考列表(target_list)对数据列表(data)进行筛选和转换。
data:包含字典的列表,每个字典通常包含 name 字段和可选的 version 列表字段。target_list:包含字符串的列表,格式可能为 "name:version" 或仅 "name"。target_list 中的每一个目标字符串。t_name 和 t_ver(如果存在)。name(即 target_list 中没有版本号),则 t_ver 视为空或不存在。t_ver 存在,将其中的 "-" 替换为 ".",以便与 data 中的版本号格式匹配。data 中查找与 t_name 匹配的项。t_ver 存在:version 列表中是否包含该版本号。version 为空列表)添加到结果列表中。t_ver 不存在(即 target_list 中只有 name):new_data 必须仅包含 target_list 中指定的数据项,且顺序应与 target_list 一致。target_list 中元素缺少版本号的情况,避免 split 或索引错误。data 中存在但 target_list 中未指定的项。target_list 中的所有元素都包含 ":"。~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.