How to differentiate between license and notice for matches? #4279
-
I would like to find both licenses and notices with scancode-tookit but need to differentiate between them. The scan result seems to only generate opaque categories Now all these rules do indicate in their definition whether they are for a license through Example command that I have used: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
I'm not sure if you're trying to identify license vs notice files or you're trying to identify license texts/notice texts detected, so I'll specify both:
|
Beta Was this translation helpful? Give feedback.
-
Thank you so much for your reply! The |
Beta Was this translation helpful? Give feedback.
-
@ghsa-retrieval re:
Please do not apologize, your contributions are super valuable! re: your use case
This may not be a use case for scancode-toolkit, but that's a use case for ScanCode.io with the output available in DejaCode and PurlDB alright. I think there is some basics in DejaCode where we are trying to identify key files. |
Beta Was this translation helpful? Give feedback.
I'm not sure if you're trying to identify license vs notice files or you're trying to identify license texts/notice texts detected, so I'll specify both:
is_notice
flag similarly like theis_legal
flag, and you can use this to differentiate. See #3822 and #4142 which is related.rule_identifier
. You can use the--license-references
option to get the complete data on the detected rules and licenses added to your scan results, and get theis_license_text
andis_license_notice
flags from there.