Skip to content

Commit 03cf4b5

Browse files
Merge branch 'develop' into test-pyahocorasick
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
2 parents 2a7a0b9 + 0e887a7 commit 03cf4b5

24 files changed

+106
-114
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ These are the details for the most important changes introduced::
7070
license attributes
7171
- `gen-new-required-phrases-rules` to add required phrase rules for
7272
marked required phrase in rules
73-
This improves detection accuracy and reduces false positives.
73+
This improves detection accuracy and reduces false positives.
7474
https://github.com/aboutcode-org/scancode-toolkit/pull/3924
7575
https://github.com/aboutcode-org/scancode-toolkit/pull/4237
7676
https://github.com/aboutcode-org/scancode-toolkit/pull/4241

docs/source/cli-reference/help-text-options.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ can't access, the more elaborate online documentation.
1313
Help text
1414
---------
1515

16-
The Scancode-Toolkit Command Line Interface has a Help option displaying all the options. It also
16+
The ScanCode-Toolkit Command Line Interface has a Help option displaying all the options. It also
1717
displays basic usage, and some simple examples. The command line option for this is ``--help``.
1818

1919
.. Tip::
@@ -24,7 +24,7 @@ To see the help text from the Terminal, execute the following command::
2424

2525
$ scancode --help
2626

27-
The Following Help Text is displayed, i.e. This is the help text for Scancode Version 32.0.0:
27+
The Following Help Text is displayed, i.e. This is the help text for ScanCode Version 32.0.0:
2828

2929
.. code-block:: none
3030
@@ -165,7 +165,7 @@ The Following Help Text is displayed, i.e. This is the help text for Scancode Ve
165165
seconds. [default: 120 seconds]
166166
-n, --processes INT Set the number of parallel processes to use. Disable
167167
parallel processing if 0. Also disable threading if
168-
-1. [default: 1]
168+
-1. [default: (number of CPUs)-1]
169169
-q, --quiet Do not print summary or progress.
170170
-v, --verbose Print progress as file-by-file path instead of a
171171
progress bar. Print verbose scan counters.
@@ -212,7 +212,7 @@ The Following Help Text is displayed, i.e. This is the help text for Scancode Ve
212212
Command Examples Text
213213
---------------------
214214

215-
The Scancode-Toolkit Command Line Interface has an ``--examples`` option which displays some basic
215+
The ScanCode-Toolkit Command Line Interface has an ``--examples`` option which displays some basic
216216
examples (more than the basic synopsis in ``--help``). These examples include the following aspects
217217
of code scanning:
218218

@@ -229,9 +229,9 @@ To see the help text from the Terminal, execute the following command::
229229

230230
$ scancode --examples
231231

232-
The Following Text is displayed, i.e. This is the examples for Scancode Version 3.1.1 ::
232+
The Following Text is displayed, i.e. This is the examples for ScanCode Version 3.1.1 ::
233233

234-
Scancode command lines examples:
234+
ScanCode command lines examples:
235235

236236
(Note for Windows: use '\' back slash instead of '/' forward slash for paths.)
237237

@@ -311,7 +311,7 @@ To see the help text from the Terminal, execute the following command::
311311
#. Output Control
312312
#. Basic Scan Options
313313

314-
The Following Text is displayed, i.e. This is the available plugins for Scancode Version 31.2.1 ::
314+
The Following Text is displayed, i.e. This is the available plugins for ScanCode Version 31.2.1 ::
315315

316316
--------------------------------------------
317317
Plugin: scancode_output:csv class: formattedcode.output_csv:CsvOutput
@@ -825,7 +825,7 @@ The Following Text is displayed, i.e. This is the available plugins for Scancode
825825
``--list-packages`` Option
826826
--------------------------
827827

828-
This shows all the types of packages that can be scanned using Scancode.
828+
This shows all the types of packages that can be scanned using ScanCode.
829829
These are located in packagedcode i.e. Code used to parse various package formats.
830830

831831
See the :ref:`supported_packages` page for more details and documentation

docs/source/cli-reference/list-options.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
All Available Options
44
=====================
55

6-
This section contains an exhaustive list of all Scancode options, arranged in various sections.
6+
This section contains an exhaustive list of all ScanCode options, arranged in various sections.
77
The sections are as follows:
88

99
- Basic Scan Options

docs/source/cli-reference/other-commands.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Other available CLIs
1616
``scancode-reindex-licenses`` command
1717
-------------------------------------
1818

19-
ScanCode maintains a license index to search for and detect licenses. When Scancode is
19+
ScanCode maintains a license index to search for and detect licenses. When ScanCode is
2020
configured for the first time, a license index is built and used in every scan thereafter.
2121

2222
This ``scancode-reindex-licenses`` command rebuilds the license index. Running this command
@@ -33,7 +33,7 @@ The ``--additional-directory`` option allows the user to include additional dire
3333
of licenses to use in license detection.
3434

3535
This command only needs to be run once for each set of additional directories, in all subsequent
36-
runs of Scancode with the same directories all the licenses in the directories will be cached
36+
runs of ScanCode with the same directories all the licenses in the directories will be cached
3737
and used in License detection. But reindexing removes these directories, if they aren't
3838
reintroduced as additional directories.
3939

docs/source/cli-reference/output-filters-and-control.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.. _cli_output_control_filters:
22

3-
Controlling Scancode Output and Filters
3+
Controlling ScanCode Output and Filters
44
=======================================
55

66
.. include:: /rst_snippets/output_control_options.rst

docs/source/cli-reference/output-format.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
.. _cli_output_format:
22

3-
Scancode Output Formats
3+
ScanCode Output Formats
44
=======================
55

6-
Scan results generated by Scancode are available in different formats, to be specified by the
6+
Scan results generated by ScanCode are available in different formats, to be specified by the
77
following options.
88

99
.. include:: /rst_snippets/output_format_options.rst
@@ -22,7 +22,7 @@ following options.
2222
---------------
2323

2424
Among the ScanCode Output Formats, ``json`` is the most important one, and is recommended over
25-
others. Scancode Workbench and other applications that use Scancode Result data as input accept
25+
others. ScanCode Workbench and other applications that use ScanCode Result data as input accept
2626
only the ``json`` format.
2727

2828
The following code performs a scan on the samples directory, and publishes the results in
@@ -199,7 +199,7 @@ following options.
199199
"scan_errors": []
200200
},
201201

202-
This is the recommended Output option for Scancode Toolkit.
202+
This is the recommended Output option for ScanCode Toolkit.
203203

204204
----
205205

@@ -548,7 +548,7 @@ Comparing Different ``json`` Output Formats
548548

549549
``--cyclonedx FILE``
550550
--------------------
551-
Scancode also supports the `CycloneDx <https://cyclonedx.org/specification/overview/>`_ output format
551+
ScanCode also supports the `CycloneDx <https://cyclonedx.org/specification/overview/>`_ output format
552552

553553
Please note that this output format is only useful when scanning with the ``--package`` option
554554

docs/source/cli-reference/scan-options-pre.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Pre-Scan Options
1818

1919
scancode --ignore "*.java" samples samples.json
2020

21-
Here, Scancode ignores files ending with `.java`, and continues with other files as usual.
21+
Here, ScanCode ignores files ending with `.java`, and continues with other files as usual.
2222

2323
More information on :ref:`glob_pattern_matching`.
2424

@@ -35,7 +35,7 @@ Pre-Scan Options
3535

3636
scancode --include "*.java" samples samples.json
3737

38-
Here, Scancode selectively scans files that has names ending with `.java`, and ignores all other files. This
38+
Here, ScanCode selectively scans files that has names ending with `.java`, and ignores all other files. This
3939
is basically complementary in behavior to the ``--ignore`` option.
4040

4141
More information on :ref:`glob_pattern_matching`.

docs/source/cli-reference/synopsis.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ detailed Instructions on the each of the Installation Methods.
2727
- :ref:`pip_install`
2828
- :ref:`source_code_install`
2929

30+
3031
.. _synopsis_quickstart:
3132

3233
Quickstart
@@ -37,11 +38,11 @@ The basic command to perform a scan, in case of a download and configure install
3738

3839
path/to/scancode [OPTIONS] <OUTPUT FORMAT OPTION(s)> <SCAN INPUT>
3940

40-
The basic usage, if Scancode is installed from ``pip``, or in Windows::
41+
The basic usage, if ScanCode is installed from ``pip``, or in Windows::
4142

4243
scancode [OPTIONS] <OUTPUT FORMAT OPTION(s)> <SCAN INPUT>
4344

44-
Here Scancode scans the <SCAN INPUT> file or directory for license, origin and packages and saves
45+
Here ScanCode scans the <SCAN INPUT> file or directory for license, origin and packages and saves
4546
results to FILE(s) using one or more output format option. Error and progress are printed to
4647
stdout.
4748

@@ -66,10 +67,10 @@ While a scan using absolute paths from the file system root will look like::
6667
Commands similar to ``scancode -clpi --json-pp output.json samples`` will be used as examples
6768
throughout the documentation.
6869

69-
- Here we are inside the ``virtualenv`` where Scancode-Toolkit is configured.
70+
- Here we are inside the ``virtualenv`` where ScanCode-Toolkit is configured.
7071

7172
- And the default ``samples`` folder is being scanned, which is distributed by default with
72-
Scancode-Toolkit.
73+
ScanCode-Toolkit.
7374

7475
.. _scancode_cli_options:
7576

docs/source/contribute/gsoc19_final_report.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Overview
1313

1414
**Problem:** Since Python 2.7 will retire in few months and will not be maintained any longer.
1515

16-
**Solution:** `Scancode <https://github.com/aboutcode-org/scancode-toolkit/>`__ needs to be ported to
16+
**Solution:** `ScanCode <https://github.com/aboutcode-org/scancode-toolkit/>`__ needs to be ported to
1717
python 3 and all test suites must pass on both version of Python. The main difference that
1818
makes Python 3 better than Python 2.x is that the support for unicode is greatly improved in
1919
Python 3. This will also be useful for scancode as scancode has users in more than 100 languages
@@ -79,7 +79,7 @@ We choose the third solution because it is most fundamental and simple and easy
7979

8080
Project was tracked in this ticket `nexB/scancode-toolkit#295 <https://github.com/aboutcode-org/scancode-toolkit/issues/295>`__
8181

82-
**Project link :** `Port Scancode to Python 3 <https://summerofcode.withgoogle.com/organizations/6118953540124672/>`__
82+
**Project link :** `Port ScanCode to Python 3 <https://summerofcode.withgoogle.com/organizations/6118953540124672/>`__
8383

8484
..
8585
[Org Link] https://summerofcode.withgoogle.com/organizations/6118953540124672/

docs/source/contribute/gsoc21_final_report.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ Akanksha Garg <akanksha.garg2k@gmail.com>
1010
`GITHUB <https://github.com/akugarg>`_
1111

1212

13-
Project: Detect Unknown Licenses and Indirect License References in Scancode
14-
-----------------------------------------------------------------------------
13+
Project: Detect Unknown Licenses and Indirect License References in ScanCode
14+
----------------------------------------------------------------------------
1515

16-
`ScanCode-toolkit <https://github.com/aboutcode-org/scancode-toolkit>`_
16+
`ScanCode-Toolkit <https://github.com/aboutcode-org/scancode-toolkit>`_
1717

1818
`Project Link <https://summerofcode.withgoogle.com/archive/2021/projects/6229596998991872>`_
1919

@@ -24,7 +24,7 @@ Description
2424
------------
2525

2626
The main motive of this project was to improve license detection of unknown licenses
27-
and follow references to indirect license references in Scancode-TK
27+
and follow references to indirect license references in ScanCode-Toolkit
2828

2929
**Improvement in the License Data Model Definition**
3030
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -78,7 +78,7 @@ containing n-grams from all regular license texts and rules. This is tracked in
7878
**Addition of some new Licenses**
7979
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8080

81-
There were some licenses that were not present in Scancode-toolkit as for now.
81+
There were some licenses that were not present in ScanCode-Toolkit as for now.
8282
They have been added now.
8383

8484
`nexB/scancode-toolkit#2625 <https://github.com/aboutcode-org/scancode-toolkit/pull/2625>`_

docs/source/getting-started/install.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ For advanced usage and experienced users, you can also use any of these mode:
1919

2020
- :ref:`docker_install`
2121

22-
An alternative to installing the latest Scancode Toolkit release natively is
22+
An alternative to installing the latest ScanCode-Toolkit release natively is
2323
to build a Docker image from the included Dockerfile. The only prerequisite
2424
is a working Docker installation.
2525

@@ -80,7 +80,7 @@ ScanCode needs a Python 3.9+ interpreter; We support all Python versions from
8080

8181
For Ubuntu, it is ``sudo apt install python3-dev``
8282

83-
- On Ubuntu 16, 18, 20 and 22 run::
83+
- On Ubuntu 16, 18, 20 ,22 and 24 run::
8484

8585
sudo apt install python-dev bzip2 xz-utils zlib1g libxml2-dev libxslt1-dev libpopt0
8686

@@ -114,7 +114,7 @@ ScanCode needs a Python 3.9+ interpreter; We support all Python versions from
114114
.. Note::
115115

116116
64-bit Python interpreters (x86-64) are the only interpreters supported by
117-
Scancode on all operating systems which means only 64-bit Windows is supported.
117+
ScanCode on all operating systems which means only 64-bit Windows is supported.
118118

119119
See the :ref:`windows_app_install` section for more installation details.
120120

@@ -125,7 +125,7 @@ ScanCode needs a Python 3.9+ interpreter; We support all Python versions from
125125
Installation as an Application: Downloading Releases
126126
-----------------------------------------------------
127127

128-
Get the Scancode Toolkit tarball archive of a specific version and your
128+
Get the ScanCode Toolkit tarball archive of a specific version and your
129129
operating system by going to the `project releases page <https://github.com/aboutcode-org/scancode-toolkit/releases/>`_
130130

131131
For example, Version 30.0.1 archive can be obtained from
@@ -194,8 +194,8 @@ This will configure ScanCode and display the command line :ref:`cli_help_text`.
194194

195195
.. _windows_app_install:
196196

197-
Installation on Windows 10
198-
^^^^^^^^^^^^^^^^^^^^^^^^^^
197+
Installation on Windows 10/11
198+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
199199

200200
- Download the latest ScanCode release zip file for Windows from the latest
201201
version at https://github.com/aboutcode-org/scancode-toolkit/releases/
@@ -234,7 +234,7 @@ Installation on Windows 10
234234
then Right-click in this window and select Paste. This will paste the path you
235235
copied before and is where you extracted ScanCode::
236236

237-
cd path/to/extracted/ScanCode
237+
cd path\to\extracted\ScanCode
238238

239239
- Press Enter.
240240

@@ -267,7 +267,7 @@ Un-installation
267267
Installation via Docker:
268268
------------------------
269269

270-
You can install Scancode Toolkit by building a Docker image from the included Dockerfile.
270+
You can install ScanCode Toolkit by building a Docker image from the included Dockerfile.
271271
The prerequisite is a working `docker installation <https://docs.docker.com/engine/install/>`_.
272272

273273

@@ -317,7 +317,7 @@ those after will be forwarded to scancode.
317317
Installation from Source Code: Git Clone
318318
-----------------------------------------
319319

320-
You can download the Scancode Toolkit Source Code and build from it yourself.
320+
You can download the ScanCode Toolkit Source Code and build from it yourself.
321321
This is what you would want to do it if:
322322

323323
- You are developing ScanCode or adding new patches or want to run tests.

0 commit comments

Comments
 (0)