Repository navigation
Conversation
Add rules and regression fixtures for the mixed GPL and LGPL notices documented in aboutcode-org#5539. Signed-off-by: shree varshan <shreevarshan2699@gmail.com>
mevarx
marked this pull request as ready for review
November 24, 2026 14:23
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #5539
Summary
ScanCode reported fragmented GPL/LGPL matches for the usbmuxd notices in the issue. This adds four rules for the source notices and the README license section, without changing the matcher.
client.c,conf.c, andusb.hdetectgpl-2.0 OR gpl-3.0: the notice offers version 2 or version 3, not either version or later.utils.hdetectslgpl-2.1-plus: the grant specifies LGPL 2.1 or later even though the warranty paragraph drops “Lesser”.README.mddetects both expressions because it documents the project's GPL options and the separate LGPL files.Testing
python -m pytest tests/licensedcode/test_detection_datadriven4.py --test-suite=all -k usbmuxd -q— 5 passed locally on Windows in a worktree containing only this change. Full CI has not been verified.Tasks
Run tests locally to check for errors.
AI assistance was used to prepare the rules, regression fixtures, and PR description.