-
Notifications
You must be signed in to change notification settings - Fork 109
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
RFC: Specify how header-level data are returned in ABCD #7
Comments
@mnonnenmacher @tdruez @jdaguil @mjherzog @DennisClark @sschuberth .... feedback welcomed! |
Should it just be tool_notice and tool_options under each tool rather than scancode_notice and scancode_options. ScanCode is primus inter pares, but I guess it might not always be the first AboutCode tool to create a file. |
@mjherzog good points. So with this, these would be the fields that are expected in a header item:
with these extra and optional:
|
@pombredanne LGTM |
@pombredanne Presumably ScanCode Plugins would be among the tools writing to the header items (?) |
@mjherzog sorry for the late reply: yes, plugins would contribute header items |
@pombredanne 👍 The proposed header attribute looks good to me. I think it would be beneficial to have a small summary in the headers to note what each tool did to the data, though it could get unruly quickly. |
so here is what I am working to include in ScanCode v3:
|
* 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]>
As @sschuberth pointed the new proposed |
What I don't like about Depending on what kind of data is to be added, I could also imagine |
One more thought: Now that we have |
tool_name is indeed better |
* 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]>
As suggested by @sschuberth in aboutcode-org/aboutcode#7 (comment) Signed-off-by: Philippe Ombredanne <[email protected]>
Closing since this is covered by aboutcode-org/scancode-toolkit#211 |
Today we have header-level data in ScanCode data that is a tad ad-hoc. For instance:
We should normalize this and support having multiple tools providing some log that they touched the data.
Here is what I suggest: store these in a top level "header" attribute. This attribute would contain a list. Each list item would be an object.
With this in mind the new ScanCode output would look like this:
And with several tools having "touched" the data:
In this context these would be the only fields that are expected in a header item:
and the convention would be that each tool exporting ABCD data would:
The benefits of all this are:
The text was updated successfully, but these errors were encountered: