Add new rule for mit#4121
Merged
pombredanne merged 1 commit intoaboutcode-org:developfrom Apr 21, 2025
Merged
Conversation
11ef22a to
d8b26bf
Compare
Collaborator
Author
|
@pombredanne can you please review this PR, Now there is no bug. We detects correct Eg: This new rule fixes two bugs that are facing in #3861 and #3860. Hope this helps. |
900b882 to
505e7b4
Compare
Collaborator
Author
|
@pombredanne can you please review this PR it solves two bugs. |
AyanSinhaMahapatra
requested changes
Apr 5, 2025
Member
There was a problem hiding this comment.
@alok1304 Thanks++
See comments for suggested improvements.
To fix license detection false positive issues by updating rules you need to:
- Add new rules as applicable
- Also add required phrases/minimum_coverage to the falsely detected rules with different licenses which are not present: For example here you also need to modify the
src/licensedcode/data/rules/cc-by-3.0_and_mit_3.RULERULE (see the scan result JSON you pasted for this), by adding required phrases to the license names + URLs seperately, so similar issues does not happen in the future with this rule. Please also apply the same to other/future PRs. Eventually we are doing this massively in #3924 to improve rules.
ae27002 to
af0d9a7
Compare
ref: aboutcode-org#3860 ref: aboutcode-org#3861 Signed-off-by: Alok Kumar <[email protected]>
af0d9a7 to
16425c9
Compare
Member
pombredanne
approved these changes
Apr 21, 2025
Member
pombredanne
left a comment
There was a problem hiding this comment.
Looking good!
I created as a follow up this issue:
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.
Now we detects the correct license expression i.e
mit.Fixes #3860
Fixes #3861
Tasks
Run tests locally to check for errors.
Signed-off-by: Alok Kumar [email protected]