aboutcode-org / aboutcode-org/scancode-toolkit

gpl1+ gpl2+ false detection

Abierto
#2,585 2 comentarios 0 reacciones 0 asignados Ver en GitHub
bug improve-license-detection license scan
Lenguaje dominante
Python
Estrellas
2.6k
Forks
791
Merge medio
1 d 12 h
PR fusionados (30 d)
5

Descripción

### Description

Some of the gpl1 rules matches very few text and have
probability to match real code.

for example:

```src/licensedcode/data/rules/gpl-1.0-plus_50.RULE```

only contains 'gpl1+'

On some of my scanned code, I have some variable named i_gpl1, which is incremented in a for loop, so several occurence of

```i_gpl1++```

scancode matches this as gpl-1.0-plus with a score of 100.

I also have another variable named i_gpl2, which also gets incremented, and the rule

```src/licensedcode/data/rules/gpl-2.0-plus_188.RULE``` will match it as gpl-2.0-plus

Guía de contribución

Abrir la guía de contribución

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.