Skip to content

Conversation

@NullPointer-cell
Copy link

Fixes #4576

Problem

ScanCode failed to detect BSD-3-Clause license in JLine packages (jline-console, jline-style, jline-reader) because the license is declared in XML comments rather than standard Maven <licenses> tags.

Solution

Added detection rule bsd-new_jline_xml.RULE to recognize the specific BSD license notice pattern found in JLine project POM files.

Testing

✅ Verified detection on jline-console-3.30.4-sources.jar

  • License detected: BSD-3-Clause
  • Match coverage: 89.47%
  • Rule used: bsd-new_jline_xml.RULE
    The same pattern appears in jline-style and jline-reader, so this rule covers all three packages.

Changes

  • Added: src/licensedcode/data/rules/bsd-new_jline_xml.RULE

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: NullPointer-cell [email protected]

NullPointer-cell added 3 commits January 15, 2026 13:15
Fixes aboutcode-org#4576

Adds bsd-new_jline_xml.RULE to detect BSD-3-Clause license in JLine POM files
License was previously undetected because it was in XML comments
Tested on jline-console, applies to jline-style and jline-reader as well

Signed-off-by: NullPointer-cell <[email protected]>
Remove ignorable_urls field to fix CI validation test failures

Signed-off-by: NullPointer-cell <[email protected]>
The URL in the license text must be declared in ignorable_urls
to pass CI validation checks.

Signed-off-by: NullPointer-cell <[email protected]>
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.

Failed to scan BSD license

1 participant