Skip to content

Conversation

@harpreet-2146
Copy link

@harpreet-2146 harpreet-2146 commented Jan 2, 2026

Fixes #3935

Adds detection rule for the license notice pattern:
'Distributed under the terms of the GNU Lesser General Public License,
either version 3 of the License, or (at your option) any later version.'

This pattern was previously misdetected as lgpl-2.1-plus due to partial matching of 'GNU Lesser General Public License' without the version 3 context. The new rule matches the complete two-line notice and correctly identifies it as lgpl-3.0-plus.

Testing done:

Tasks

  • Reviewed contribution guidelines
  • PR is descriptively titled 📑 and links the original issue above 🔗
  • Tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR
  • Commits are in uniquely-named feature branch and has no merge conflicts 📁
  • Updated documentation pages (if applicable)
  • Updated CHANGELOG.rst (if applicable)

Signed-off-by: Harpreet Kaur Gothra [email protected]

Fixes aboutcode-org#3935

Adds detection rule for the license notice pattern:
'Distributed under the terms of the GNU Lesser General Public License,
either version 3 of the License, or (at your option) any later version.'

This pattern was previously misdetected due to partial matching.

Signed-off-by: harpreet kaur gothra <[email protected]>
@harpreet-2146 harpreet-2146 force-pushed the fix-lgpl-3.0-detection-3935 branch from 405273a to c754945 Compare January 2, 2026 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LGPL-3.0-or-later wrongly identified as GPL-2.0-or-later

1 participant