aboutcode-org / aboutcode-org/scancode-toolkit

Incorrect license expression normalization for AND / OR combinations

オープン
#4,690 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
Python
スター
2.6k
フォーク
791
平均マージ
1日 12時間
マージ済み PR(30日)
5

説明

### Description

When ScanCode detects files with combined license expressions involving Apache-2.0 and MIT, the resulting license expression appears to be incorrectly normalized or simplified.

For a license statement such as

> licensed under Apache-2.0 AND MIT

ScanCode reports only apache-2.0, omitting MIT entirely.

For a license statement such as

> licensed under Apache-2.0 OR MIT

ScanCode reports the expression as: apache-2.0 AND (apache-2.0 OR mit)

### How To Reproduce

scan files with statement as follows

> licensed under Apache-2.0 AND MIT

and

> licensed under Apache-2.0 OR MIT

> scancode --license --json-pp scancode.json .

### System configuration

OS: macOS 15.6.1 (x86_64)
ScanCode Toolkit version: 32.4.1
Installation method: pip

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。