-
-
Notifications
You must be signed in to change notification settings - Fork 599
Improve documentation #4467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Improve documentation #4467
Changes from all commits
b9954a6
a4d9219
bc1c655
6c46ab4
3c251f0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,8 @@ | |
All Available Options | ||
===================== | ||
|
||
This section contains an exhaustive list of all ScanCode options, arranged in various sections. | ||
This section contains an exhaustive list of all ScanCode-Toolkit options, | ||
arranged in various sections. | ||
The sections are as follows: | ||
|
||
- Basic Scan Options | ||
|
@@ -13,25 +14,12 @@ The sections are as follows: | |
- Pre-Scan Options | ||
- Post-Scan Options | ||
|
||
There's also another section for ``extractcode`` options. | ||
|
||
The order of the sections and all their options is the same as in the :ref:`cli_help_text`, | ||
available in the command line. | ||
|
||
.. _cli_basic: | ||
|
||
.. include:: /rst_snippets/basic_options.rst | ||
|
||
---- | ||
|
||
.. include:: /rst_snippets/extract.rst | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure we want to remove these sections, they are pretty useful IMHO There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @AyanSinhaMahapatra I'm removing this from the list-options since extract.rst is already included in other-commands.rst. Having it in both places seem redundant. |
||
|
||
---- | ||
|
||
.. include:: /rst_snippets/scancode-reindex-licenses.rst | ||
|
||
---- | ||
|
||
.. include:: /rst_snippets/core_options.rst | ||
|
||
---- | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally the post-scan options (like
--summary
,--todo
) are configured to just operate on the codebase (with top-level licenses/packages etc and all resource level results) and this should work fine with--from-json
The core scan options (like
--license
--info
) and pre-scan options cannot be run here. There are some post-scan options which have required options as dependencies, so those also need to be there in the loaded scan if those options are being specified.Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AyanSinhaMahapatra I am wondering is it true that all the "Pre-Scan" options cannot be run with
--from-json
?https://scancode-toolkit.readthedocs.io/en/latest/cli-reference/list-options.html#all-pre-scan-options
It seems to be the "--ignore" and "--include" don't really need the code files to have it work (I didn't look at the source code to verify it). Also, https://scancode-toolkit.readthedocs.io/en/latest/cli-reference/core-options.html#from-json-option , the current
--from-json` is usung
--classify`` as a sample.For the post-scans, I want to verify that if an option's dependencies are missing, the command still executes without errors, it just won’t return results related to the missing dependencies, correct?