-
Notifications
You must be signed in to change notification settings - Fork 261
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
License not detected, because of README with references to other licenses #392
Comments
Licensee running on github.com doesn't look at READMEs so your project should be properly detected as GPL-2.0 when you push it to github.com. However, it looks like you've found a bug in some combination of https://github.com/licensee/licensee/blob/master/lib/licensee/matchers/reference.rb and https://github.com/licensee/licensee/blob/master/lib/licensee/project_files/readme_file.rb I suspect MIT is being detected in the README because that word corresponds to a license name or identifier. One partial fix might be to just make the confidence reported by the reference matcher way lower. As to why you see NOASSERTION when
|
Is there a setting for excluding READMEs, so I could test locally?
You mean fix it in licensee's sources?
Thanks for explaining. Can I do something about this? Can I exclude the README detection for this particular project? |
Yes, by fix I mean in licensee's sources -- in one of the files I link to above, plus possibly some corresponding test file(s).
|
Hmm, I seem to be using the latest released version (9.11.0), but this option isn't advertised in help output:
Perhaps it's good to fix this too. Otherwise, the option works and license is properly detected without considering the README file. |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I have a project almost ready for import in GitHub after migration from a legacy VCS. However, when I run licensee locally in the migrated Git repository I'm getting the following results:
File COPYING is exact match for GPL2 as expected, but the text in README is causing detection of MIT license reference and hence no license detection for the project. The README file contains the following section:
I tried removing the "references" leaving just the line "See file COPYING for details." in this section, but like this the result from licensee becomes:
So the project's license is still not properly detected? How to fix this?
The text was updated successfully, but these errors were encountered: