aboutcode-org / aboutcode-org/scancode-toolkit

Incorrect license expression normalization for AND / OR combinations

Offen
#4,690 5 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
Python
Sterne
2.6k
Forks
791
Ø Merge
1 T. 12 Std.
Gemergte PRs (30 T.)
5

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.