aboutcode-org / aboutcode-org/scancode-toolkit

scancode detects "Simplified BSD License" as "BSD-3-Clause AND BSD-2-Clause" in version 32.5.0 vs BSD-2-Clause in version 32.3.3

Ouverte
#5,299 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
bug
Langage dominant
Python
Étoiles
2.6k
Forks
791
Merge moyen
1 j 12 h
PR mergées (30 j)
5

Description

### Description

> scancode-toolkit version 32.5.0 detects the same "Simplified BSD License" header comment as BSD-3-Clause AND BSD-2-Clause (bsd-simplified AND bsd-new), whereas version 32.3.3 correctly detects it as just BSD-2-Clause (bsd-simplified).
The statement causing this detection is:

```
// Distributed under the Simplified BSD License.
// See README.md for details.

```

Source processed: https://github.com/russross/blackfriday/tree/master

Affected files

10 files under russross/:

README.md
block.go
block_test.go
html.go
inline.go
inline_test.go
latex.go
markdown.go
markdown_test.go
ref_test.go

### How To Reproduce

> Clone https://github.com/russross/blackfriday (master branch)
Run scancode against the checkout with both v32.3.3 and v32.5.0, e.g.:
scancode --license --json-pp result.json .
Compare the license_expression for the files listed above:
v32.3.3 → bsd-simplified (BSD-2-Clause)
v32.5.0 → bsd-simplified AND bsd-new (BSD-3-Clause AND BSD-2-Clause)

### System configuration

> For bug reports, it really helps us to know:

- OS: N/A (issue reproducible regardless of OS)
- scancode-toolkit versions compared: 32.3.3 vs 32.5.0
- Installation method: N/A

[32.3.3.json](https://github.com/user-attachments/files/31838433/32.3.3.json)
[32.5.0.json](https://github.com/user-attachments/files/31838434/32.5.0.json)

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.