I set up scanpipe locally, run the scan_codebase pipeline on https://registry.npmjs.org/@uifabric/charting/-/charting-2.7.5.tgz, and downloaded the results in json when it was done. I tried to upload the scan directly to matchcode to see what happens and matchcode runs into an error because of the first Resource in the results:
{
"for_packages": [],
"path": "",
"size": 0,
"sha1": "",
"md5": "",
"copyrights": [],
"holders": [],
"authors": [],
"licenses": [],
"license_expressions": [],
"emails": [],
"urls": [],
"status": "",
"type": "directory",
"extra_data": {},
"name": "codebase",
"extension": "",
"programming_language": "",
"mime_type": "",
"file_type": ""
},
I'd expect there to be a path value for the codebase directory (which all the files sit in) and I would also expect that all the subsequent Resource paths to be prefixed by codebase as well. Conversely, since the rest of the paths are not prefixed with codebase, you could just opt to remove this Resource and I wouldn't think it would mess anything up in the results?
I set up scanpipe locally, run the
scan_codebasepipeline onhttps://registry.npmjs.org/@uifabric/charting/-/charting-2.7.5.tgz, and downloaded the results in json when it was done. I tried to upload the scan directly to matchcode to see what happens and matchcode runs into an error because of the first Resource in the results:I'd expect there to be a path value for the
codebasedirectory (which all the files sit in) and I would also expect that all the subsequent Resource paths to be prefixed bycodebaseas well. Conversely, since the rest of the paths are not prefixed withcodebase, you could just opt to remove this Resource and I wouldn't think it would mess anything up in the results?