aboutcode-org / aboutcode-org/scancode-toolkit

Inaccurate license detection for SPDX license identifier with trimmed, missing trailing parens

Aperta
#2,290 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug enhancement license scan
Lingua principale
Python
Stelle
2.6k
Fork
791
Merge medio
1g 12h
PR unite (30g)
5

Descrizione

A text exactly as `SPDX-License-Identifier: (GPL-2.0-or-later WITH Bootloader-exception` (with a missing trailing paren) will be detected as `(gpl-2.0-plus AND bootloader-exception) AND unknown-spdx` where `unknown-spdx` comes from the missing trailing paren making the expression invalid from strict validation perspective.
We should allow and cope with these kind of cases which can be characterized as the presence of a single opening paren.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.