-
-
Notifications
You must be signed in to change notification settings - Fork 552
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
Provide header level details for a scan: Enhance scancode to include a log or history with useful statistics #211
Comments
This log file can also contain the |
See also aboutcode-org/aboutcode#7 |
As discussed in #840, having a summary of errors (e.g. in the header of the regular JSON output file) would also be beneficial. |
There is some improvements in develop post #885. More work is needed towards this though |
Signed-off-by: Philippe Ombredanne <[email protected]>
* This is a new data structure as designed in aboutcode-org/aboutcode#7 * For now, the old header-level data have been kept Signed-off-by: Philippe Ombredanne <[email protected]>
Signed-off-by: Philippe Ombredanne <[email protected]>
* This is a new data structure as designed in aboutcode-org/aboutcode#7 * For now, the old header-level data have been kept Signed-off-by: Philippe Ombredanne <[email protected]>
Signed-off-by: Philippe Ombredanne <[email protected]>
This is the original attribute name we had agreed to Signed-off-by: Philippe Ombredanne <[email protected]>
As suggested by @sschuberth in aboutcode-org/aboutcode#7 (comment) Signed-off-by: Philippe Ombredanne <[email protected]>
* Remove the top level attributes scancode_notice, scancode_version, etc... And move the tope level files_count as an extra_data header attribute. * Update all outputs and tests accordingly * other minor refactorings * rename plugincode.output.OutputPlugin.get_results to get_files * remove scancode.resource.Codebase.get_headings, now obsolete Signed-off-by: Philippe Ombredanne <[email protected]>
GH closed this automatically.... reopening! |
Here is what we have now:
and then the same file reprocessed
|
The only question left is about ordering: for now the top most header item is the oldest, not the newest. It might be better to have the ordering done the other way? |
@sschuberth also we now have a global
|
I don't really think it matters, as to be on the safe side you should always sort by |
@sschuberth re
This is the data as it is from the last run in the file. Tracking actual changes is something to do outside. |
I see. Another idea to make this more clear would be to always only keep one top-level header, and move headers from previous processing steps e.g. to the existing |
@sschuberth re
I am not inclined to go that way: this would mean that each tool that updates the header would need to move several data bits around instead of just appending a whole new record. I would prefer keep this simpler way unless you feel strongly about it |
No, not strongly enough 😉 |
@sschuberth thanks! |
I am closing at last as this is now merged in develop. |
A run of scancode should generate a log file with meaningful statistics, including such things as:
The text was updated successfully, but these errors were encountered: