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

未关闭
#5,299 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
Python
星标
2.6k
派生
791
平均合并
1 天 12 小时
30 天内合并 PR
5

描述

### 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)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。