Add new "headers" top level attribute - #1285
Conversation
|
Note that this is the last feature-like ticket of the V3 milestone https://github.com/nexB/scancode-toolkit/milestone/8 |
Codecov Report
@@ Coverage Diff @@
## develop #1285 +/- ##
===========================================
- Coverage 84.06% 83.69% -0.37%
===========================================
Files 118 117 -1
Lines 12974 13305 +331
===========================================
+ Hits 10906 11136 +230
- Misses 2068 2169 +101
Continue to review full report at Codecov.
|
|
Please keep And to be frank, I believe |
|
@sschuberth re
This is kept and renamed to Are you saying that you always need a top level
Yes! |
|
let's move the top level name discussion to aboutcode-org/aboutcode#7 |
No, that's not a requirement for us, but we need to generally know from looking at the result file by which version of ScanCode it was created. |
|
@sschuberth re
that's going to be always available |
* 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 <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
This is the original attribute name we had agreed to Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
resource.py no longer reuses Python stdlib code. Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
72165b9 to
890f127
Compare
|
@sschuberth I renamed this attribute to |
As suggested by @sschuberth in aboutcode-org/aboutcode#7 (comment) Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
* 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 <pombredanne@nexb.com>
|
This looks all green now. Merging |
headersas discussed RFC: Specify how header-level data are returned in ABCD aboutcode#7 ?Some questions:
scancode_version: should we remove them entirely from the 3.0 output or deprecate them in doc and remove them only later?@mjherzog @DennisClark @sschuberth @JonoYang @MaJuRG @mnonnenmacher feedback welcomed!