-
Notifications
You must be signed in to change notification settings - Fork 314
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
ORT does find/analyse all files in a repo #9406
Comments
That expectation might be wrong, depending on the exact understanding. ORT does not generally store license information for all files, but only stores files with license / copyright findings. Any file not listed as part of the findings implicitly has an SPDX license of However, main license files, like a
This means (if there is no bug) that the scanner in use, here ScanCode, did not find any license information in those files.
That's expected. While not every file contains license information, you can calculate the SHA1 of every file.
It's not a bug AFAICT. You could for example write a rule that uses the file list to check that every file for which a SHA1 was calculated also appears in the list of license findings. Of course, that only makes sense if your policy demands that each and every file must contain license information on its own.
Not really. This kind of mapping would be the responsibility of a reporter. You could write one, or introduce an option to an existing one, that explicitly lists files with no findings with a license of This might be a valid addition to the SPDX reporter. |
Ok, I fully understand. What about the following: If I set a curation for a whole folder in my "curations" : {
"license_findings" : [ {
"path" : "lib/common_test/priv/**",
"concluded_license" : "MIT",
"reason" : "INCORRECT",
"comment" : "The scanner incorrectly categorises the folder license"
}, { when I run the report, is the report going to include all files under that path to be set with the license I said? (these files did not have a license and now I curated them). So far, I think those files are still not shown in the report even when I have curated them, so the curation only works for the files whose license was detected to be something, and the report skips the files with license |
No. License finding curations only correct the license findings that are explicitly contained in the ORT result file.
That's expected for files that were not originally in the ORT result file.
Correct. |
Thanks for the information |
Can we somehow put the outcome of the discussion into a concrete feature request (as a separate, clean issue)? If not, are we good to close the issue (or move it to a discussion for reference)? |
Great idea. New ticket as feature enhancement: |
Describe the bug
In an unmanaged project, I was expecting all files to be included in the scan results, but this is not the case.
To Reproduce
Steps to reproduce the behavior:
git clone [email protected]:erlang/otp.git
bin/ort analyze -i ~/otp -o ~/otp -f JSON
bin/ort scan -f JSON -i ~/otp/analyzer-result.json -o ~/otp
(takes ~40 min)*.css
files are not found in the scan resultsExpected behavior
I expected all files in an unmanaged repo to be categorised with a license.
The
*.css
files do not appear inside the ort pathscan_results.summary.licenses
(scan-result.json
),but they do appear in the section that mentions:
File
lib/common_test/priv/ct_default.css
cannot be found anywhere in the results of the scan (scan-result.json
), except for the sha1."lib/common_test/priv/jquery.tablesorter.min.js"
does not appear in the scan results either, except for its sha1.UNKNOWN
?Console / log output
Environment
Output of the
ort requirements -l commands
command:And specify (relevant parts of) your ORT configuration (
config.yml
):Additional context
None
The text was updated successfully, but these errors were encountered: