aboutcode-org / aboutcode-org/license-expression

Case-sensitive validation of license expressions?

Aperta
#121 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
73
Fork
33
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

While the latest SPDX standard specifies that license identifiers should (mostly) be treated _case-insensitive_ (https://spdx.github.io/spdx-spec/v3.0.1/annexes/spdx-license-expressions/#case-sensitivity), I have a use case where we'd like to validate that all identifiers in an expression match with the case of the canonical identifier on the [SPDX License List](https://spdx.org/licenses). Is there a way to do this with `license-expression`, e.g, by somehow accessing the original token from the parsed `LicenseSymbol`?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.