Skip to content

Latest commit

 

History

History
302 lines (198 loc) · 10.1 KB

File metadata and controls

302 lines (198 loc) · 10.1 KB

Are you new to ScanCode-Toolkit?

This is the perfect place to start, if you are new to ScanCode-Toolkit. Have a quick look at the table of contents below, as these are the main sections you might need help on. These sections have extensive links to other important documentation pages, and make sure you go through them all.

Table of Contents

  1. :ref:`newcomer_try_scancode`

  2. :ref:`newcomer_learn_scancode`

  3. :ref:`newcomer_contribute`


Try ScanCode-Toolkit

This section is about using the ScanCode-Toolkit, i.e. Performing a scan on a codebase/files to determine their license, copyrights and other information, according to your requirements.

  1. The :ref:`newcomer_scan_codebase` section helps you with configuring your virtual environment, installing ScanCode and performing a basic scan, and subsequently visualize the results.
  2. The :ref:`newcomer_scancode_tips` section helps you customize the scan according to your requirements, and better understand the advanced features you can use.
  3. The :ref:`newcomer_all_tutorials` is essentially an exhaustive list of all Tutorials and How To's with a brief description on what they help you to achieve.

Before you start using ScanCode

  1. You need to make sure :ref:`install_prerequisites` are installed. There are a few different ways to install ScanCode:
  1. Run scancode -h to make sure ScanCode was installed properly. If this shows any Error, refer the Common Installation Errors Issue for common errors.

Note

Refer :ref:`synopsis_quickstart` to make sure you are using the scan command correctly.

Note

For Windows, Refer to :ref:`windows_app_install` for installing easily using Releases.

Scan a Codebase

Once you are all set up with ScanCode-Toolkit, i.e. Running scancode -h shows the :ref:`cli_help_text`, you can start scanning files or a codebase.

  1. Refer :ref:`synopsis_quickstart` for commonly used scan commands, and commonly used :ref:`synopsis_output`. (The recommended output format is JSON)
  2. Refer :doc:`../rst_snippets/extract` for the use of ExtractCode.
  3. :ref:`how_to_run_a_scan` is a sample tutorial for absolute beginners, to walk them through the process of running a scan. Follow this tutorial and perform a scan on the sample folder distributed with ScanCode, or any file/folder of your choice. Avoid advanced options, and just follow the basic instructions.
  4. ScanCode generates output files with scan results. You can visualize JSON result files using ScanCode Workbench. Follow this tutorial :ref:`how_to_visualize_scan_results` to visualize the scan results.

Use ScanCode Better

  1. Go through all the options in the page :ref:`cli_list_options`, to know about ScanCode Command Line options. You can then modify the Scan according to your requirements.

All Tutorials/How-Tos

The Tutorials are:

  1. :ref:`how_to_run_a_scan`
  2. :ref:`how_to_visualize_scan_results`
  3. :ref:`how_to_set_what_scan_detects`
  4. :ref:`how_to_extract_archives`
  5. :ref:`how_to_specify_output_format`
  6. :ref:`how_to_add_post_scan_plugin`

The How-To's are:

  1. :ref:`add_new_license_for_det`
  2. :ref:`add_new_license_det_rule`

ScanCode Versions

  1. You can see all ScanCode-Toolkit versions on the GitHub release page.
  2. Read the CHANGELOG for more information on specific releases.
  3. If you want to use/test a specific version of ScanCode-Toolkit, you can follow the instructions in :ref:`source_code_install` docs.

Learn more about ScanCode-Toolkit

Here we give an introduction on the ScanCode-Toolkit Documentation Sections that can help you to learn more about ScanCode-Toolkit.

CLI Reference

This section contains a complete guide to ScanCode-Toolkit Command Line options, i.e. What the command-line options are, how different options affect the scan and outputs, how to use these options and examples of their use cases.

Now this section has three types of pages:

  1. The :ref:`cli_synopsis` page and the :ref:`how_to_run_a_scan` page as summaries.
  2. An exhaustive list of all Command Line Options at :ref:`cli_list_options`
  3. All the other pages detailing the :ref:`scancode_cli_options`

Note that the page for one type of options also has a short list of all the options detailed on that page in the beginning. The :ref:`cli_list_options` page just has all of them together, and also the extractcode options.

How ScanCode Works

This section has documentation on :ref:`explain_how_scancode_works`.

Plugins

Plugins are an integral part of ScanCode-Toolkit in the sense they are used to easily extend ScanCode capabilities, and developers can code their own plugins according to their requirements.

This section has documentation on:

  1. The :ref:`plugin_arch`
  2. The :ref:`license_policy_plugin`
  3. All :ref:`plugin_tutorials`

Contribute

If you are looking to Contribute to ScanCode-Toolkit, this is where you start.

General Information

  1. Also refer the Contribution page here.
  2. For more Project Ideas, refer :ref:`contributor_project_ideas`.
  3. Before committing your work, make sure you have read this post on :ref:`good_commit_messages`.

Contribute Code

If you haven't contributed to ScanCode-Toolkit refer :ref:`newcomer_good_first_issue`.

To determine where to contribute, you can refer:

  1. ScanCode-Toolkit tracks issues via the GitHub Issue tracker
  2. Broad milestones for upcoming versions are also maintained.

And documentation related to contributing code can be referred at :ref:`contrib_code_dev`.

Good First Issues

A good first issue means it's recommended for people who haven't contributed to ScanCode-Toolkit before.

Add new Functionality/Enhancement to ScanCode

There are two main paths you can follow to add a new functionality to ScanCode. They are:

  1. Add the functionality to ScanCode itself.
  2. Add plugins if the functionality is very much application dependent.

Refer enhancement issues for the first type of enhancements. If you want to add a plugin to implement the functionality, refer all the :ref:`plugin_tutorials`.

Update our Documentation

Maintaining a comprehensive, accurate, updated and effective documentation is very important as that directly affects the acceptability of ScanCode-Toolkit.

To contribute to ScanCode-Toolkit Documentation, first refer the :ref:`contrib_doc_dev` section.

The sections in this page cover the following:

  1. :ref:`contrib_doc_setup_local`
  2. :ref:`contrib_doc_share_improvements`
  3. :ref:`doc_ci` system for the Documentation
  4. :ref:`doc_style_docs8`
  5. :ref:`doc_interspinx`
  6. :ref:`doc_style_conv`

You can contribute to the following Open Issues on documentation.

  1. First Timers Only Issues List
  2. Documentation Inconsistencies Tracker
  3. ScanCode-Toolkit Documentation Roadmap
  4. Issues with label Documentation

Note

Refer :ref:`improve_docs` to report Documentation Errors or to request Improvements.

Also, consider contributing to other Aboutcode Project Documentations, as they need more support.

Participate in GSoC/GSoD

If you want to participate in any of the two programs:

Then:

  1. Keep an eye out for Application Timelines.

  2. Solve multiple of these :ref:`newcomer_good_first_issue` to demonstrate your skills, and improve your chances of selection.

  3. Refer to the Projects Ideas List for details on tentative projects.

  4. Remain active in Element and talk with the organization mentors well ahead of the deadlines.

  5. Select projects according to your skills and finalize project proposals.

  6. Discuss your proposals extensively with corresponding mentors.

  7. Apply for the Programs well before the Deadline.