aboutcode-org / aboutcode-org/vulnerablecode

Uniform method to categorize versions

未关闭
#494 2 条评论 0 个 reaction 已指派 1 人 已被 @TG1999 认领 在 GitHub 查看
debt import-improver-migration
主要语言
Python
星标
702
派生
328
平均合并
3 天 8 小时
30 天内合并 PR
3

描述

A function to categorize versions into affected and safe versions is present in multiple importers such as
https://github.com/nexB/vulnerablecode/blob/e9943b014f5f07b970988f910b2aaebcec0a6e58/vulnerabilities/importers/github.py#L320-L338

https://github.com/nexB/vulnerablecode/blob/e9943b014f5f07b970988f910b2aaebcec0a6e58/vulnerabilities/importers/apache_httpd.py#L129-L148

https://github.com/nexB/vulnerablecode/blob/e9943b014f5f07b970988f910b2aaebcec0a6e58/vulnerabilities/importers/istio.py#L66-L83

They are present with different names and sometimes even with different parameters. This is confusing and hard to document.
Imo, we should create an abstract method in the `DataSource` class with a uniform name and parameters. This would also help me build the small documentation I'm working on for vulnerablecode better.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。