-
-
Notifications
You must be signed in to change notification settings - Fork 594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new rule for mit #4121
base: develop
Are you sure you want to change the base?
Add new rule for mit #4121
Conversation
11ef22a
to
d8b26bf
Compare
@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
@pombredanne can you please review this PR it solves two bugs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.RULE
RULE (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 Update rules with required phrases automatically #3924 to improve rules.
ae27002
to
af0d9a7
Compare
ref: aboutcode-org#3860 ref: aboutcode-org#3861 Signed-off-by: Alok Kumar <alokkumarjipura9973@gmail.com>
af0d9a7
to
16425c9
Compare
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 alokkumarjipura9973@gmail.com