aboutcode-org / scancode-toolkit

:mag: ScanCode detects licenses, copyrights, dependencies by "scanning code" ... to discover and inventory open source and third-party packages used in your code. Sponsored by NLnet project https://nlnet.nl/project/vulnerabilitydatabase, the Google Summer of Code, Azure credits, nexB and others generous sponsors!
https://github.com/aboutcode-org/scancode-toolkit/releases/
2.07k stars 536 forks source link

--strip-root option is not working #1658

Open moh-imran opened 5 years ago

moh-imran commented 5 years ago

Hello, Thanks in advance. I am using scan code and trying to use option "--strip-root". Still i get full path in result.html for all the style sheets and scripts. Can anyone please help??

./scancode eCS-TestPackage_THW_A_V1.0.zip-extract -l --license-text --license-score 0 -p -c -i -e --ignore '' --license-diag --timeout 2400 --processes 3 --strip-root --html-app /mnt/scancode_share/result.html

Note: I am using scancode version 2.9.9 I have attached the distorted images view also.

image

pombredanne commented 5 years ago

Thank you for the report. The data used in the HTML template does not seem to report absolute locations https://github.com/nexB/scancode-toolkit/blob/ddcacb12a8baf75099ade6803fcdff6f1bdbf3a9/src/formattedcode/templates/html/template.html

Can you try to use the latest develop branch? 2.9.9 is a very thing!

pombredanne commented 5 years ago

@themifycloud I just realized you are using the HTML app... This is deprecated and will soon be removed entirely. You should instead consider using this app https://github.com/nexB/scancode-workbench to visualize the scan results (it uses the JSON output)