Skip to content

Conversation

@NullPointer-cell
Copy link

@NullPointer-cell NullPointer-cell commented Jan 9, 2026

Description

This PR addresses an issue where an unknown license rule was not being detected correctly.
It modifies the rule definitions to ensure proper detection coverage.

Related Issue

Fixes #[4481]

Checklist

  • I have read the CONTRIBUTING guide.
  • I have signed my commits (DCO).
  • I have added or updated tests to cover these changes.
  • All tests passed locally (pytest).

Test Plan

I created a new test case in tests/sourcedata/... and verified that the license is now correctly detected using:
pytest -vvs tests/test_package_manifest.py

@NullPointer-cell NullPointer-cell force-pushed the fix-unknown-license-rule branch from 39a23d7 to cdab42e Compare January 9, 2026 14:43
@NullPointer-cell NullPointer-cell force-pushed the fix-unknown-license-rule branch from 59456d8 to bc9144d Compare January 10, 2026 04:26
@NullPointer-cell
Copy link
Author

Hi! I've completed the fix for issue #4481 by removing unknown_10.RULE which was causing false positive unknown-license-reference detections.

Verification:

✅ Tested locally with node-cookie-signature v1.2.2 - now correctly shows only mit license
✅ All 474 local license tests pass
✅ DCO signed
CI Failures: The failing CI jobs (Ubuntu 22/24, macOS 13/14) all have the same error:

ImportError: cannot import name 'py36' from 'commoncode.system'

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.

1 participant