For a default scan of the "samples" folder, this a comparison between the default,
strip-root
andfull-root
options.An example Scan
scancode -cplieu --json-pp output.json samples --full-rootThese two changes only the "path" attribute of the file information. For this comparison we compare the "path" attributes of the file
LICENSE
insideJGroups
directory.The default path:
"path": "samples/JGroups/LICENSE",For the
--full-root
option, the path relative to the Root of your local filesystem."path": "/home/ayansm/Desktop/GSoD/scancode-toolkit-versions/scancode-toolkit-2.2.1/samples/JGroups/LICENSE"For the
--strip-root
option, the root directory (heresamples
) is removed from path :"path": "JGroups/LICENSE"
In a normal scan, all files inside the directory specified as an input argument is scanned and subsequently included in the scan report. But if you want to run the scan on only some selective files, with some specific common author then
--ignore-author
option can be used to do the same.This scan ignores all files with authors matching the string "Apache Software Foundation":
scancode -cplieu --json-pp output.json samples --ignore-author "Apache Software Foundation"More information on :ref:`glob_pattern_matching`.
In a normal scan, all files inside the directory specified as an input argument is scanned and subsequently included in the scan report. But if you want to run the scan on only some selective files, with some specific common copyright holder then
--ignore-copyright-holder
option can be used to do the same.This scan ignores all files with Copyright Holders matching the string "Free Software Foundation":
scancode -cplieu --json-pp output.json samples --ignore-copyright-holder "Free Software Foundation"More information on :ref:`glob_pattern_matching`.
This option removes from the scan results, the files where nothing significant has been detected, like files which doesn't contain any licenses, copyrights, emails or urls (if requested in the scan options), and isn't a package.
An example Scan:
scancode -cplieu --json-pp output.json samples --only-findingsNote
This also changes in the result displayed, the number of files scanned.
For example, scanning the
sample
files (distributed by default with scancode-toolkit) without this option, displays in it's report information of 43 files. But after enabling this option, the result shows information for only 31 files.