aboutcode-org / aboutcode-org/vulnerablecode

Uniform method to categorize versions

Abierto
#494 2 comentarios 0 reacciones 1 asignado Reclamado por @TG1999 Ver en GitHub
debt import-improver-migration
Lenguaje dominante
Python
Estrellas
702
Forks
328
Merge medio
3 d 8 h
PR fusionados (30 d)
3

Descripción

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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.