-
-
Notifications
You must be signed in to change notification settings - Fork 574
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
Duplicates in license detection result #2170
Comments
@qduanmu Hello and hank you again! I hope everything is OK for you! In each case the text matched is
Both 1. and 2. would be quick fixes but would not be viable for the long term. I tend to think 3. is a better but harder approach. What do you think? |
Jumping in a bit late. Stumbled on a file, gen.go, yesterday. There are two license texts in the file. Scancode (3.2.3 with
So, license_expressions, copyrights and holders are all stated (by authors) and reported (by Scancode) twice. I am not sure multiple and verbatim copyright and/or license statements stated multiple times should be reported as one. OK, I admit the reason I looked at this issue was because I thought it was something spooky with Scancode and I did spend some time checking my scancode report analyser for errors. Perhaps it simply should be up to the user (machine or human) to discard duplicate entries? |
@hesa Hey! 👋 So I think this is a good case for effectively having a simplification here. There two notices alright and scancode detects them all correctly, but a post processing would do nicely! Unrelated: May you should run the latest version? 3.2.3 starts to be old! |
I think I would prefer to do this post processing myself (i.e. let scancode report the two instances). So, for me, this issue can be closed. Re unrelated :)
|
Thank you for your quick response, @pombredanne , hope everything goes well with you!
I second the proposal 3., design something new(like a regex pattern/rule for above files, yes, this is a hard approach for files like https://github.com/jslicense/spdx-exceptions.json/blob/master/index.json) to filter out their license matching as false positives or even skip the file scanning. |
@qduanmu Hey 👋 !
Thank you and yes, A-OK here ... and I hope for you too. https://raw.githubusercontent.com/NuGet/NuGet.Client/7bf0d060f3f1a680121ac17dbda01e6b15ef3b54/src/NuGet.Core/NuGet.Packaging/Licenses/NuGetLicenseData.cs is still problematic though @AyanSinhaMahapatra ^ FUIO you may have another idea for this issue? |
The content of scanning file is:
{ "ZPL-2.0", new LicenseData(licenseID: "ZPL-2.0", isOsiApproved: true, isDeprecatedLicenseId: false, isFsfLibre: true) }
The license detection result is below:
The text was updated successfully, but these errors were encountered: