-
-
Notifications
You must be signed in to change notification settings - Fork 568
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
Move visualidiot license to its own type (#1999) #2001
Conversation
Per discussion in aboutcode-org#1999, the now-defunct visualidiot.com license should receive scrutiny by those who might be using code containing such a license. It is currently mis-categorized as other-permissive, inviting users to overlook the license. This commit moves the license to it's own license type, visual-idiot. Signed-off-by: Bryan Sutula <sutula@redhat.com>
@sutula Thank you ++ This is looking perfect. |
I am not sure I have the testing correct, but please do leave me any pointers for things I can do better. I'd like to learn in order to help with future license changes. |
@sutula you have this issue for now:
This is a consistency check done when the license index is being built and each text must be unique (ignoring formatting, case, spacing and punctuations). To resolve it, remove the The best way to catch these issues early is to run a test license scan locally after you made your updates in your local checkout. Beyond that, you can also run a basic test suite too with this command: To run the extensive license+everyting test suite that runs on the CI you can use this: The whole test suite may take 20 to 30+ minutes or more as there about 28,000+ unit and integration tests that run in that case ... |
One thing I commonly do when adding a new license is to search for possible common notices to add a rules. Looking at https://github.com/search?q=licence.visualidiot.com&type=Code and https://github.com/search?q=visualidiot&type=Code may provide a few interesting ones such as:
I would also likely add a simple And all of these rules would be qualified with See also https://github.com/jonstoler/The-Happy-License |
Per discussion in aboutcode-org#1999, rules/visual-idiot_1.* duplicates the license text that was placed in licenses/ and is not necessary. Signed-off-by: Bryan Sutula sutula@redhat.com
Thanks so much for the feedback. I really appreciate it. What I'm now understanding is that scancode uses the union of both the texts in the licenses subdirectory as well as the contents of the rules subdirectory when it searches for licenses. One thing I am struggling with is that I ran py.test before making any changes and there seemed to be lots of errors. Since I don't know the project, I captured the "before" and "after" errors and compared them. While there were 3 lines (out of 211) of differences, I could not see anything that would help me to understand that I had made a change that would make the test output worse. So I offer this as feedback to the project...it would be nice if py.test would run clean or if there was a current document describing current known errors. I understand that this type of work is both tedious and time-consuming. I suppose some of this is platform dependencies also, another nightmare. I updated the pull request as you have suggested (remove visual-idiot_1). You mentioned other possible tags, notices, and references, as well as including relevance information. I'm afraid these concepts are above my current understanding of scancode, but I will try to study them. Please feel free to supplement this pull request with any of those things that you can add quickly. I also still don't know how to handle the existing test failures, but perhaps I can learn more about that in the future. |
The current failing travis-ci test doesn't seem to be related to this proposed patch, as far as I can tell. |
no nightmare, no worries! Feel free to paste your tests output. There should be no errors. |
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Thanks for offering to look at test output. I had run tests before and after like:
Attached find both a before making any changes and after making changes. Note that after making changes there is one less error. :-( This gives me the feeling that my environment is somehow different from what has been used before. |
These are extra rules for a few common notices, tags and references such that we cast a wider net on this license. Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
@sutula both tests output are surprising and abnormal to me. I cannot fathom what would trigger this. |
Per discussion in #1999, the now-defunct visualidiot.com license
should receive scrutiny by those who might be using code containing
such a license. It is currently mis-categorized as other-permissive,
inviting users to overlook the license. This commit moves the license
to it's own license type, visual-idiot.
Signed-off-by: Bryan Sutula sutula@redhat.com
Fixes #1999
Tasks
Run tests locally to check for errors.