aboutcode-org / aboutcode-org/scancode-toolkit

Wrong spdx detection for file generator

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

Descripción

Some of our files contain generator of source code.

Looks like this:

```
def printHeader(dest):
year = datetime.datetime.now().year
print("# Copyright (C) %s, ACME, All Right Reserved." % year, file=dest)
print("#", file=dest)
print("# This file is subject to the terms and conditions of", file=dest)
print("# ACME Software License Agreement", file=dest)
print("# SPDX-License-Identifier: LicenseRef-ACME-Proprietary", file=dest)
print("#", file=dest)
print("# DO NOT EDIT MANUALLY", file=dest)
print("# This file was autogenerated by mighty_generate.py", file=dest)
```

The 5th line got detected by the spdx matcher, but the detected SPDX license is unknown

We do add `LicenseRef-ACME-Proprietary` in our custom SPDX license, but it is not recognised, probably the end of the line is taken as part of the full SPDX ID.

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.