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 件 担当者 0 名 GitHub で見る
bug
主要言語
Python
スター
2.6k
フォーク
791
平均マージ
1日 12時間
マージ済み PR(30日)
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 を短くまとめたダイジェスト。