aboutcode-org / aboutcode-org/scancode-toolkit

Support reporting unknown SPDX LicenseRef as their own license

Abierto
#2,650 1 comentario 0 reacciones 1 asignado Reclamado por @AyanSinhaMahapatra Ver en GitHub
new feature
Lenguaje dominante
Python
Estrellas
2.6k
Forks
791
Merge medio
1 d 12 h
PR fusionados (30 d)
5

Descripción

This is split from https://github.com/nexB/scancode-toolkit/issues/2502#issuecomment-864386537

In there @soimkim wrote

> I also have a similar issue.
I want to print the items marked with SPDX License, but the ScanCode json result is output as follows.

- Information written to the file:
`# SPDX-License-Identifier: LicenseRef-Sample-Proprietary`

- ScanCode json result :
```JSON
"licenses": [
{
"key": "unknown-spdx",
"score": 83.33,
"name": "Unknown SPDX license detected but not recognized",
"short_name": "unknown SPDX",
"category": "Unstated License",
"is_exception": false,
"owner": "Unspecified",
"homepage_url": null,
"text_url": "",
"reference_url": "https://scancode-licensedb.aboutcode.org/unknown-spdx",
"scancode_text_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/unknown-spdx.LICENSE",
"scancode_data_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/unknown-spdx.yml",
"spdx_license_key": "LicenseRef-scancode-unknown-spdx",
"spdx_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/unknown-spdx.LICENSE",
"start_line": 3,
"end_line": 3,
"matched_rule": {
"identifier": "spdx-license-identifier: unknown-spdx",
"license_expression": "unknown-spdx",
"licenses": [
"unknown-spdx"
],
```

>Although it is not a license registered in SPDX, is there a way to print the License ID ("Sample-Proprietary" in the example above) if it is written according to the notation of the SPDX License?

>If "key" extracted as "unknown-spdx", how about outputting "identifier" in "matched_rule" as License ID written?

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.