Skip to content

Commit 07cd836

Browse files
Merge branch 'develop' into rename_match_spdx_expression_3838
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
2 parents 8a0a030 + 9b3cf12 commit 07cd836

File tree

2,796 files changed

+145058
-64746
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,796 files changed

+145058
-64746
lines changed

CHANGELOG.rst

+24-3
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@ v33.0.0 (next next, roadmap)
99
- OpenWRT packages.
1010
- Yocto/BitBake .bb recipes.
1111

12+
1213
- Fallback packages for non-native dependencies of SCTK.
1314
- Dependencies for
1415
- Support for copyright detection objects.
1516

17+
- We can now collect packages from a Go binary using go-inspector (Linux-only)
18+
1619
- A new field in packages with the license category for the
1720
detected license expression and also an API function to
1821
compute license categories from license expressions.
@@ -34,6 +37,22 @@ v33.0.0 (next next, roadmap)
3437
of these in other summary plugins.
3538
See https://github.com/nexB/scancode-toolkit/issues/1745
3639

40+
- Update link references of ownership from nexB to aboutcode-org
41+
See https://github.com/aboutcode-org/scancode-toolkit/issues/3885
42+
43+
- New and updated licenses, including support for newly released
44+
SPDX license list versions:
45+
- SPDX License List 3.25.0:
46+
This release of the SPDX license list had 9 new licenses
47+
and exceptions, and out of them 5 were present as licenses
48+
and 2 were present as rules already. There were 2 new
49+
license/exception texts added, and also 1 license was deprecated.
50+
For more details see https://github.com/aboutcode-org/scancode-toolkit/pull/3897
51+
52+
- New and improved copyright detection with many false positive removed
53+
and refined detection added.
54+
55+
- Fix Python ``SyntaxWarning`` in textcode module.
3756

3857
v32.2.1 - 2024-07-02
3958
---------------------
@@ -155,7 +174,7 @@ Changes in Output Data Structure:
155174
file-level ``package_data``
156175
* ``license_detections`` and ``other_license_detections`` in
157176
codebase level ``packages``
158-
177+
159178
- On using the CLI option ``--license-text-diagnostics`` there is
160179
now a new license match attribute ``matched_text_diagnostics``
161180
with the matched text and highlighted diagnostics, instead of
@@ -164,7 +183,7 @@ Changes in Output Data Structure:
164183
- A new ``reference_matches`` attribute is added to codebase-level
165184
``license_detections`` which is same as the ``matches`` attribute
166185
in other license detections.
167-
186+
168187
- We now have SPDX license expressions everywhere we have
169188
ScanCode license expressions for ease of use and adopting
170189
SPDX everywhere. A new attribute ``license_expression_spdx``
@@ -212,7 +231,7 @@ Changes in Output Data Structure:
212231
and https://github.com/nexB/scancode-toolkit/issues/3443
213232
Also improve debian manifests parsing and purl parsing from
214233
filenames. Support for https://github.com/nexB/purldb/issues/245
215-
Bumps debian-inspector to v31.1.0
234+
Bumps debian-inspector to v31.1.0
216235

217236
- Bump commoncode to v31.0.3
218237

@@ -870,6 +889,8 @@ Package detection:
870889

871890
- For Pypi packages, python_requires is treated as a package dependency.
872891

892+
- Update JavaScript package handlers to handle aliases in npm and yarn manifests.
893+
873894

874895
License Clarity Scoring Update:
875896
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

README.rst

+141-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Why use ScanCode?
8989
InstallShield installers, iOS apps, ISO images, Apache IVY, JBoss Sar,
9090
R CRAN, Apache Maven, Meteor, Mozilla extensions, MSI installers,
9191
JavaScript npm packages, package-lock.json, yarn.lock, NSIS Installers,
92-
NugGet, OPam, Cocoapods, Python PyPI setup.py, setup.cfg, and
92+
NuGet, OPam, Cocoapods, Python PyPI setup.py, setup.cfg, and
9393
several related lockfile formats, semi structured README
9494
files such as README.android, README.chromium, README.facebook, README.google,
9595
README.thirdparty, RPMs, Shell Archives, Squashfs images, Java WAR, Windows
@@ -246,6 +246,7 @@ See the NOTICE file and the .ABOUT files that document the origin and license of
246246
the third-party code used in ScanCode for more details.
247247

248248

249+
249250
.. |azure| image:: https://dev.azure.com/nexB/scancode-toolkit/_apis/build/status/nexB.scancode-toolkit?branchName=develop
250251
:target: https://dev.azure.com/nexB/scancode-toolkit/_build/latest?definitionId=1&branchName=develop
251252
:alt: Azure tests status (Linux, macOS, Windows)
@@ -261,3 +262,142 @@ the third-party code used in ScanCode for more details.
261262
.. |release-github-actions| image:: https://github.com/nexB/scancode-toolkit/actions/workflows/scancode-release.yml/badge.svg?event=push
262263
:target: https://github.com/nexB/scancode-toolkit/actions/workflows/scancode-release.yml
263264
:alt: Release tests
265+
266+
267+
Acknowledgements, Funding, Support and Sponsoring
268+
--------------------------------------------------------
269+
270+
This project is funded, supported and sponsored by:
271+
272+
- Generous support and contributions from users like you!
273+
- the European Commission NGI programme
274+
- the NLnet Foundation
275+
- the Swiss State Secretariat for Education, Research and Innovation (SERI)
276+
- Google, including the Google Summer of Code and the Google Seasons of Doc programmes
277+
- Mercedes-Benz Group
278+
- Microsoft and Microsoft Azure
279+
- AboutCode ASBL
280+
- nexB Inc.
281+
282+
283+
284+
|europa| |dgconnect|
285+
286+
|ngi| |nlnet|
287+
288+
|aboutcode| |nexb|
289+
290+
291+
This project was funded through the NGI0 Discovery Fund, a fund established by NLnet with financial
292+
support from the European Commission's Next Generation Internet programme, under the aegis of DG
293+
Communications Networks, Content and Technology under grant agreement No 825322.
294+
295+
|ngidiscovery| https://nlnet.nl/project/vulnerabilitydatabase/
296+
297+
298+
This project was funded through the NGI0 Entrust Fund, a fund established by NLnet with financial
299+
support from the European Commission's Next Generation Internet programme, under the aegis of DG
300+
Communications Networks, Content and Technology under grant agreement No 101069594.
301+
302+
|ngizeroentrust| https://nlnet.nl/project/Back2source/
303+
304+
305+
This project was funded through the NGI0 Core Fund, a fund established by NLnet with financial
306+
support from the European Commission's Next Generation Internet programme, under the aegis of DG
307+
Communications Networks, Content and Technology under grant agreement No 101092990.
308+
309+
|ngizerocore| https://nlnet.nl/project/Back2source-next/
310+
311+
312+
This project was funded through the NGI0 Core Fund, a fund established by NLnet with financial
313+
support from the European Commission's Next Generation Internet programme, under the aegis of DG
314+
Communications Networks, Content and Technology under grant agreement No 101092990.
315+
316+
|ngizerocore| https://nlnet.nl/project/FastScan/
317+
318+
319+
This project was funded through the NGI0 Commons Fund, a fund established by NLnet with financial
320+
support from the European Commission's Next Generation Internet programme, under the aegis of DG
321+
Communications Networks, Content and Technology under grant agreement No 101135429. Additional
322+
funding is made available by the Swiss State Secretariat for Education, Research and Innovation
323+
(SERI).
324+
325+
|ngizerocommons| |swiss| https://nlnet.nl/project/MassiveFOSSscan/
326+
327+
This project was funded through the NGI0 Entrust Fund, a fund established by NLnet with financial
328+
support from the European Commission's Next Generation Internet programme, under the aegis of DG
329+
Communications Networks, Content and Technology under grant agreement No 101069594.
330+
331+
|ngizeroentrust| https://nlnet.nl/project/purl2sym/
332+
333+
334+
.. |nlnet| image:: https://nlnet.nl/logo/banner.png
335+
:target: https://nlnet.nl
336+
:height: 50
337+
:alt: NLnet foundation logo
338+
339+
.. |ngi| image:: https://ngi.eu/wp-content/uploads/thegem-logos/logo_8269bc6efcf731d34b6385775d76511d_1x.png
340+
:target: https://ngi.eu35
341+
:height: 50
342+
:alt: NGI logo
343+
344+
.. |nexb| image:: https://nexb.com/wp-content/uploads/2022/04/nexB.svg
345+
:target: https://nexb.com
346+
:height: 30
347+
:alt: nexB logo
348+
349+
.. |europa| image:: https://ngi.eu/wp-content/uploads/sites/77/2017/10/bandiera_stelle.png
350+
:target: http://ec.europa.eu/index_en.htm
351+
:height: 40
352+
:alt: Europa logo
353+
354+
.. |aboutcode| image:: https://aboutcode.org/wp-content/uploads/2023/10/AboutCode.svg
355+
:target: https://aboutcode.org/
356+
:height: 30
357+
:alt: AboutCode logo
358+
359+
.. |swiss| image:: https://www.sbfi.admin.ch/sbfi/en/_jcr_content/logo/image.imagespooler.png/1493119032540/logo.png
360+
:target: https://www.sbfi.admin.ch/sbfi/en/home/seri/seri.html
361+
:height: 40
362+
:alt: Swiss logo
363+
364+
.. |dgconnect| image:: https://commission.europa.eu/themes/contrib/oe_theme/dist/ec/images/logo/positive/logo-ec--en.svg
365+
:target: https://commission.europa.eu/about-european-commission/departments-and-executive-agencies/communications-networks-content-and-technology_en
366+
:height: 40
367+
:alt: EC DG Connect logo
368+
369+
.. |ngizerocore| image:: https://nlnet.nl/image/logos/NGI0_tag.svg
370+
:target: https://nlnet.nl/core
371+
:height: 40
372+
:alt: NGI Zero Core Logo
373+
374+
.. |ngizerocommons| image:: https://nlnet.nl/image/logos/NGI0_tag.svg
375+
:target: https://nlnet.nl/commonsfund/
376+
:height: 40
377+
:alt: NGI Zero Commons Logo
378+
379+
.. |ngizeropet| image:: https://nlnet.nl/image/logos/NGI0PET_tag.svg
380+
:target: https://nlnet.nl/PET
381+
:height: 40
382+
:alt: NGI Zero PET logo
383+
384+
.. |ngizeroentrust| image:: https://nlnet.nl/image/logos/NGI0Entrust_tag.svg
385+
:target: https://nlnet.nl/entrust
386+
:height: 38
387+
:alt: NGI Zero Entrust logo
388+
389+
.. |ngiassure| image:: https://nlnet.nl/image/logos/NGIAssure_tag.svg
390+
:target: https://nlnet.nl/image/logos/NGIAssure_tag.svg
391+
:height: 32
392+
:alt: NGI Assure logo
393+
394+
.. |ngidiscovery| image:: https://nlnet.nl/image/logos/NGI0Discovery_tag.svg
395+
:target: https://nlnet.nl/discovery/
396+
:height: 40
397+
:alt: NGI Discovery logo
398+
399+
400+
401+
402+
403+

azure-pipelines.yml

+27
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,33 @@ jobs:
7575
tests/licensedcode/test_detection_validate.py \
7676
-k TestValidateLicenseExtended5
7777
78+
79+
license_validate_ignorables_1: |
80+
venv/bin/pytest -n 3 -vvs --test-suite=validate \
81+
tests/licensedcode/test_detection_validate.py \
82+
-k TestValidateLicenseIgnorableClues1
83+
84+
license_validate_ignorables_2: |
85+
venv/bin/pytest -n 3 -vvs --test-suite=validate \
86+
tests/licensedcode/test_detection_validate.py \
87+
-k TestValidateLicenseIgnorableClues2
88+
89+
license_validate_ignorables_3: |
90+
venv/bin/pytest -n 3 -vvs --test-suite=validate \
91+
tests/licensedcode/test_detection_validate.py \
92+
-k TestValidateLicenseIgnorableClues3
93+
94+
license_validate_ignorables_4: |
95+
venv/bin/pytest -n 3 -vvs --test-suite=validate \
96+
tests/licensedcode/test_detection_validate.py \
97+
-k TestValidateLicenseIgnorableClues4
98+
99+
license_validate_ignorables_5: |
100+
venv/bin/pytest -n 3 -vvs --test-suite=validate \
101+
tests/licensedcode/test_detection_validate.py \
102+
-k TestValidateLicenseIgnorableClues5
103+
104+
78105
license_cache: |
79106
venv/bin/pytest -n 3 -vvs --test-suite=all \
80107
tests/licensedcode/test_zzzz_cache.py --reruns 2

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

+9-9
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
"license_expression": "apache-2.0",
109109
"rule_identifier": "apache-2.0_65.RULE",
110110
"rule_relevance": 100,
111-
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache-2.0_65.RULE",
111+
"rule_url": "https://github.com/aboutcode-org/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache-2.0_65.RULE",
112112
"matched_text": "License: Apache-2.0"
113113
}
114114
],
@@ -587,19 +587,19 @@
587587

588588
A scan example using the ``--license-url-template TEXT`` option ::
589589

590-
scancode -clpieu --json-pp output.json samples --license-url-template https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/{}.LICENSE
590+
scancode -clpieu --json-pp output.json samples --license-url-template https://github.com/aboutcode-org/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/{}.LICENSE
591591

592592
In a normal scan, reference url for "ZLIB License" is as follows::
593593

594594
"reference_url": "https://scancode-licensedb.aboutcode.org/zlib",
595595

596596
After using the option in the following manner::
597597

598-
``--license-url-template https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/{}.LICENSE``
598+
``--license-url-template https://github.com/aboutcode-org/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/{}.LICENSE``
599599

600-
the reference URL changes to this `zlib.LICENSE file <https://github.com/nexB/scancode-toolkit/blob/develop/src/licensedcode/data/licenses/zlib.LICENSE>`_::
600+
the reference URL changes to this `zlib.LICENSE file <https://github.com/aboutcode-org/scancode-toolkit/blob/develop/src/licensedcode/data/licenses/zlib.LICENSE>`_::
601601

602-
"reference_url": "https://github.com/nexB/scancode-toolkit/blob/develop/src/licensedcode/data/licenses/zlib.LICENSE",
602+
"reference_url": "https://github.com/aboutcode-org/scancode-toolkit/blob/develop/src/licensedcode/data/licenses/zlib.LICENSE",
603603

604604
The reference URL changes for all detected licenses in the scan, across the scan result file.
605605

@@ -691,7 +691,7 @@
691691
"license_expression": "unknown-license-reference",
692692
"rule_identifier": "lead-in_unknown_30.RULE",
693693
"rule_relevance": 100,
694-
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lead-in_unknown_30.RULE",
694+
"rule_url": "https://github.com/aboutcode-org/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lead-in_unknown_30.RULE",
695695
"matched_text": "dual-licensed under [`
696696
},
697697
{
@@ -704,7 +704,7 @@
704704
"license_expression": "wtfpl-2.0",
705705
"rule_identifier": "spdx_license_id_wtfpl_for_wtfpl-2.0.RULE",
706706
"rule_relevance": 50,
707-
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/spdx_license_id_wtfpl_for_wtfpl-2.0.RULE",
707+
"rule_url": "https://github.com/aboutcode-org/scancode-toolkit/tree/develop/src/licensedcode/data/rules/spdx_license_id_wtfpl_for_wtfpl-2.0.RULE",
708708
"matched_text": "WTFPL"
709709
},
710710
{
@@ -717,7 +717,7 @@
717717
"license_expression": "wtfpl-2.0",
718718
"rule_identifier": "wtfpl-2.0_27.RULE",
719719
"rule_relevance": 100,
720-
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/wtfpl-2.0_27.RULE",
720+
"rule_url": "https://github.com/aboutcode-org/scancode-toolkit/tree/develop/src/licensedcode/data/rules/wtfpl-2.0_27.RULE",
721721
"matched_text": "www.wtfpl.net/"
722722
},
723723
{
@@ -730,7 +730,7 @@
730730
"license_expression": "mit",
731731
"rule_identifier": "mit_64.RULE",
732732
"rule_relevance": 100,
733-
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/mit_64.RULE",
733+
"rule_url": "https://github.com/aboutcode-org/scancode-toolkit/tree/develop/src/licensedcode/data/rules/mit_64.RULE",
734734
"matched_text": "MIT`](https://opensource.org/licenses/MIT)."
735735
}
736736
],

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ The Following Help Text is displayed, i.e. This is the help text for Scancode Ve
7979
--csv FILE [DEPRECATED] Write scan output as CSV to FILE. The
8080
--csv option is deprecated and will be replaced by new
8181
CSV and tabular output formats in the next ScanCode
82-
release. Visit https://github.com/nexB/scancode-
82+
release. Visit https://github.com/aboutcode-org/scancode-
8383
toolkit/issues/3043 to provide inputs and feedback.
8484
--html FILE Write scan output as HTML to FILE.
8585
--custom-output FILE Write scan output to FILE formatted with the custom
@@ -321,7 +321,7 @@ The Following Text is displayed, i.e. This is the available plugins for Scancode
321321
required_plugins:
322322
options:
323323
help_group: output formats, name: csv: --csv
324-
help: [DEPRECATED] Write scan output as CSV to FILE. The --csv option is deprecated and will be replaced by new CSV and tabular output formats in the next ScanCode release. Visit https://github.com/nexB/scancode-toolkit/issues/3043 to provide inputs and feedback.
324+
help: [DEPRECATED] Write scan output as CSV to FILE. The --csv option is deprecated and will be replaced by new CSV and tabular output formats in the next ScanCode release. Visit https://github.com/aboutcode-org/scancode-toolkit/issues/3043 to provide inputs and feedback.
325325
doc: None
326326

327327
--------------------------------------------

0 commit comments

Comments
 (0)