-
-
Notifications
You must be signed in to change notification settings - Fork 563
How To: Set what will be detected in a scan
Michael Herzog edited this page May 17, 2019
·
8 revisions
ScanCode allows you to scan a codebase for license, copyright and other interesting information that can be discovered in files. The following options are available for detection when using ScanCode Toolkit:
Syntax Option | Clue/Information |
---|---|
-c, --copyright | Scan for copyrights. [default] |
-l, --license | Scan for licenses. [default] |
-i, --info | Scan for file information. [default] |
-p, --package | Scan for packages. [default] |
-e, --email | Scan for emails. |
-u, --url | Scan for urls. |
The following examples will use the samples
directory that is provided with the ScanCode Toolkit code. All examples will be saved in the html-app format, which is a dynamic, interactive html page. The other formats options are a JSON file and a static html file. See How-To: Run a scan for more information.
To scan for licenses, copyrights, urls, emails, package information, and file information
./scancode -clip -e -u --format html-app samples samples.html
./scancode -cl --format html-app samples samples.html
./scancode -e -u --format html-app samples samples.html
./scancode -p --format html-app samples samples.html
./scancode -i --format html-app samples samples.html
./scancode --examples
See http://nexb.com for more.