-
-
Notifications
You must be signed in to change notification settings - Fork 584
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
Update license detections #3620
Merged
Merged
Conversation
This file contains 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
Adds a new attribute to document the origin path from matches so we can determine in the cases of de-referenced matches, the location these came from, and also to differentiate between matches that come from the same file or from a different file. Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
Here `from-file` attributes were being assigned after creation of top level packages so we had them empty. Adds a temporary fix to this. Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
9a49600
to
dbffe43
Compare
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
37ef122
to
a1fc5d8
Compare
In case of license detection issues in todo items, add rule attributes as additional context which are usually not added to license match data. Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
Adds a new attribute license_expression_spdx to both LicenseMatch and LicenseDetection objects, and reflected also in top-level detections and todo items. Basically this adds the SPDX license-expression everywhere we have a license-expression. Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
e54472f
to
e10358e
Compare
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
Signed-off-by: Shaikh Mohd Tehami <[email protected]>
This commit adds a new attribute for license text diagnostics which will be added when the CLI option `--license-text-diagnostics` is used, in contrast to earlier behaviour, where this diagnostics matched text used to overwrite the text in `matched_text`. Also makes sure top-level license/package summarizations have matched text and diagnostics correcttly only when the respective CLI options are used. Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
This was referenced Dec 20, 2023
dc0bd5d
to
1af3877
Compare
84d9650
to
2ddb31c
Compare
Fixes the SPDX rule identifier mismatch bug by getting rid of extra space introduced in SPDX license declaration detection and text cleaning. Also enforce python safe names for identifiers. Reference: #3634 Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
8c1c37f
to
c631e73
Compare
pombredanne
approved these changes
Jan 15, 2024
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.
Here are a few nits for your consideration.
AyanSinhaMahapatra
added a commit
that referenced
this pull request
Jan 16, 2024
Reference: #3620 Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
AyanSinhaMahapatra
added a commit
that referenced
this pull request
Jan 16, 2024
Reference: #3620 Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
2cf3a77
to
2d72d2f
Compare
Reference: #3620 Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
2d72d2f
to
2f80ae3
Compare
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
Thanks @pombredanne, addressed everything from your suggestions. Merging now! |
This was referenced Jan 29, 2024
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.
This adds the following LicenseDetection updates:
from-file
attribute with LicenseMatch origin No way to obtain LicenseMatch origin #3608reference-matches
attribute at top-level LicenseDetection objects--todo
Tasks
Run tests locally to check for errors.