- We now support new package manifest formats:
- OpenWRT packages.
- Yocto/BitBake .bb recipes.
- Fallback packages for non-native dependencies of SCTK.
- Dependencies for
- Support for copyright detection objects.
- We can now collect packages from a Go binary using go-inspector (Linux-only)
- A new field in packages with the license category for the detected license expression and also an API function to compute license categories from license expressions. See aboutcode-org#2897
- More support for tabular output formats: New command-line options for XSLX output, and the old --csv command line option is removed. See aboutcode-org#830
- --unknown-licenses is removed and this is always enabled and only used in case of improper detections automatically. Also tag all license rules with required phrases to improve license detection and reduce false positives. See aboutcode-org#3300
- File categorization support added, a post scan plugin tagging files with priority levels for review, and also take advantage of these in other summary plugins. See aboutcode-org#1745
- Update Dockerfile and test container build. See aboutcode-org#3955
Major API/other changes:
- Output Format Version updated to 4.0.0 (major version bump)
- Dependency attribute rename:
is_resolved
renamed tois_pinned
See aboutcode-org#3888 for more details. - License Match attribute rename:
spdx_license_expression
is renamed tolicense_expression_spdx
.
Changes in Output Data Structure:
The data structure of the JSON output has changed for: - dependencies at file level package_data, and at top-level. - license matches at file level or unique codebase level license detections Note that the change is a modification to the JSON output, so we have a major version bump
3.2.0
to4.0.0
:- Dependency attribute
is_resolved
renamed tois_pinned
- LicenseMatch attribute
spdx_license_expression
renamed tolicense_expression_spdx
- Dependency attribute
Update link references of ownership from nexB to aboutcode-org See aboutcode-org#3885
New and updated licenses, including support for newly released SPDX license list versions: - SPDX License List 3.25.0:
This release of the SPDX license list had 9 new licenses and exceptions, and out of them 5 were present as licenses and 2 were present as rules already. There were 2 new license/exception texts added, and also 1 license was deprecated. For more details see aboutcode-org#3897
New and improved copyright detection with many false positive removed and refined detection added.
Fix Python
SyntaxWarning
in textcode module.Improve python, npm, yarn, go package detections: aboutcode-org#3857 aboutcode-org#3869 aboutcode-org#3943 aboutcode-org#3894
Drop python 3.8 support as this is end of life. Please use older releases if you are using python 3.8 but this is not recommended.
- Add support for parsing resolved packages and dependency relationships from nuget lockfile packages.lock.json. See aboutcode-org#3825
- Add support for parsing resolved packages and dependency relationships from cocoapods lockfile Podfile.lock. See aboutcode-org#3827
- Add support for parsing packages and dependency relationships from swift swift-show-dependencies.deplock generated by DepLock. See aboutcode-org#3829
- Add support for pip-inspect.deplock files to parse and store resolved packages and dependency relationships, to statically resolve a python dependency graph. See aboutcode-org/scancode.io#1262
- Add support for poetry packages, with poetry specific pyproject.toml support, poetry.lock and package assembly support. Also add support for parsing and storing resolved packages and dependency relationships required to statically resolve poetry dependecy graphs. See aboutcode-org#2109
- Add support for pyproject.toml files in python projects. See aboutcode-org#3753
- More improved copyright detection, see aboutcode-org#3752
scancode-toolkit
is now installable from the fedora repo. See aboutcode-org#3824
New and improved package/dependency data: - Added new attribute in DependentPackage is_direct to aid
package resolution and dependency graph creation.
- Added new attributes in PackageData: is_private and is_virtual. #3102 #3811
Improved javascript package detection: - Add support for pnpm manifests and lockfiles #3766 - Add support for npm, pnpm and yarn workspaces #3746 - Improve resolved package and dependencies support in lockfiles for
yarn.lock, package-lock.json, and pnpm. #3780
- Add support for private packages. #3120
- Add support for new dependency scopes across javascript
- Lots of misc bugfixes in yarn and npm parsers.
Improve cargo package detection support with various improvements and bugfixes: - Fix for parser crashing on cargo workspaces - Fix a bug in dependency parsing (we were not returning any dependencies) - Also support getting dependency versions from workspace - Support more attributes from cargo - Better handle workspace data thorugh extra_data attribute See aboutcode-org#3783
We now support parsing the Swift manifest JSON dump and the
Package.resolved
file aboutcode-org#2657. Run the command below on your local Swift project before running the scan:swift package dump-package > Package.swift.json && swift package resolve`
New and updated licenses, including support for newly released SPDX license list versions: - SPDX License List 3.24:
This release of the SPDX license list had 25 new licenses and exceptions, and out of them 12 were present as licenses and 5 were present as rules already. There were 3 new license/exception texts added, and the rest 5 were either texts with small variations, additions to texts or several rule texts together. And the rest have been added as new licenses. For more details see aboutcode-org#3795
- More new licenses and rules: - 23 new licenses in aboutcode-org#3778
New CLI options:
- A new CLI option
--package-only
has been added which performs a faster package scan by skipping the package assembly step and also skipping license/copyright detection on package metadata.
Major API/other changes:
- Output Format Version updated to 3.1.0 (minor version bump)
- Drops python 3.7 and adopts python 3.12
- New license match attributes:
-
from_file
-matched_text_diagnostics
is added for--license-text-diagnostics
- In codebase-level
license_detections
we have a new attributereference_matches
- SPDX license expressions everywhere side-by-side with ScanCode license expressions.
- All rule attribute level data provided in codebase level
todo
items.
Changes in Output Data Structure:
The data structure of the JSON output has changed for licenses at file level, and license detections at top-level. But note that all the changes are additions to the JSON output, so we have a minor version bump
3.0.0
to3.1.0
:There is a new attribute
from_file
inmatches
which is inlicense_detections
in: * File levellicense_detections
* Codebase levellicense_detections
*license_detections
andother_license_detections
infile-level
package_data
license_detections
andother_license_detections
in codebase levelpackages
On using the CLI option
--license-text-diagnostics
there is now a new license match attributematched_text_diagnostics
with the matched text and highlighted diagnostics, instead of having this replace the plainmatched_text
.A new
reference_matches
attribute is added to codebase-levellicense_detections
which is same as thematches
attribute in other license detections.We now have SPDX license expressions everywhere we have ScanCode license expressions for ease of use and adopting SPDX everywhere. A new attribute
license_expression_spdx
is added to: -license_detections
in file and codebase level - in packagelicense_detections
andother_license_detections
-matches
forlicense_detections
everywhereAdds all rule atrribute level info in codebase level
todo
data, to assist in review. This includes length, text, notes, referenced_filenames, and the boolean attributes (like is_license_notice, is_license_intro etc, as applicable).
New and updated licenses, including support for newly released SPDX license list versions: - SPDX License List 3.22:
This release of the SPDX license list had 48 new licenses, and several of them we already had as licenses/rules, and these has been modified to be consistent with the SPDX list. And the rest have been added as new licenses. For more details see aboutcode-org#3554
- SPDX License List 3.23: This release of the SPDX license list had 43 new licenses, and out of them 22 were present as licenses and 10 were present as rules already. There were 4 new license/exception texts added, and the rest were either texts with small variations, additions to texts or several rule texts together. For more details see aboutcode-org#3653
- We also have lots of other misc new licenses and rules added to LicenseDB, see PRs below for more details: aboutcode-org#3663 aboutcode-org#3642 aboutcode-org#3586 aboutcode-org#3584 aboutcode-org#3575 aboutcode-org#3570 aboutcode-org#3568 aboutcode-org#3562
Improve debian namespace detection based on clues and fix namespace and qualifier bugs for debian purls. For more details see aboutcode-org/scancode.io#899 and aboutcode-org#3443 Also improve debian manifests parsing and purl parsing from filenames. Support for aboutcode-org/purldb#245 Bumps debian-inspector to v31.1.0
Bump commoncode to v31.0.3
Upgraded spdx-tools dependency to v0.8. See aboutcode-org#3455
Support for Conan package parser:
- We now support the parsing of Conan manifest files, such as conanfile.py, as described here https://docs.conan.io/2.0/reference/conanfile.html. We also support source extraction from conandata.yml, as described here https://docs.conan.io/2/tutorial/creating_packages/handle_sources_in_packages.html#using-the-conandata-yml-file.
This is a minor release with license detection improvements, with new and updated license detection rules and new licenses.
The main updates over the previous stable release are:
- New and updated license rules fixing several license detection bugs. See for more details: aboutcode-org#3545 aboutcode-org#3519
- Bugfix for an epoch parser bug with numeric values in rpm. See for more details: aboutcode-org#3520
This is a minor release with a lot of license detection improvements, with new and updated license detection rules and new licenses.
- 33 new licenses, 30 licenses updated
- 70 new and updated license rules
The main updates over the previous stable release are:
- To the license Rule class adds is_license_clue attribute and is_deprecated attribute to support license clues detection, and always maintain consistency on unique rule names. Adds fixes for other license detection bug related to license clues, bug in setup.cfg license detection and makes license detection identifiers python-safe. See aboutcode-org#3462
- Update/Add new licenses and license rules. See aboutcode-org#3470 aboutcode-org#3513
- Bump commoncode to v31.0.3 fixing a VirtualCodebase creation issue when there is a directory under the root with the same name as the root directory itself. aboutcode-org/commoncode#57 aboutcode-org#3495
This is a minor release with a lot of license and package detection improvements, specially for maven packages. We also support the SPDX license list 3.21 now. The main updates over the previous stable release are:
- New and updated licenses, including support for newly released SPDX license list version 3.21. For more details see aboutcode-org#3437
- Fixes in summary plugin for licenses, and top-level license detections. aboutcode-org#3430
- Updated maven license and package detections, with fixes for
various maven package manifest parsing, improved top-level
package assembly, ecosystem specific package license detection,
fixes in
--todo
plugin, updated license detection rules/heuristics and other misc changes. For more details see: aboutcode-org#3447 - Improved Gemfile.lock parsing. For more details see aboutcode-org#3444
- Auto-review plugin to get todo items for scan review, with
the new
--todo
CLI option. For more details see: aboutcode-org#3353 - Misc. license and copyright detection improvements at aboutcode-org#3346
- Other misc. minor bugfixes detailed in all the previous release-candidates.
The previous release v32.0.5rc3 was failing on mac app release tests, see aboutcode-org#3435 for more details. This release attempts to fix this and release correctly.
The previous release v32.0.5rc1 failed to upload pypi wheels because of file size limits enforced by pypi, and this release is effectively the same as the previous one, but now the size limit has been increased by pypi/support#2926 so this will upload the wheels correctly.
This is a minor bugfix release with the following updates:
- A new --todo option is added to show the todo items that should be reviewed, which are ambiguous license/package detections.
- New licenses and license detection rules. And other license detection fixes.
This is a minor bugfix release with the following updates:
- Fixes a performance issue issue arising out of license detection on files happening in a single-threaded process_codebase step when the license CLI option is disabled for a package scan. Reference: aboutcode-org#3423
This is a minor bugfix release with the following updates:
- We were missing scancode-toolkit-mini releases from v32.0.0rc2 and also the scancode-toolkit release wheels including and after v32.0.0rc2 were actually scancode-toolkit-mini releases. Reference: aboutcode-org#3421
- Updated github actions, for more details see aboutcode-org/skeleton#75
This is a minor bugfix release with the following update:
- New release v30.1.1 of license-expression with support for new license keys added. Also fail verbosely in build_spdx_license_expression for invalid and deprecated license keys.
This is a minor bugfix release.
There are fixes for two issues in this release: - aboutcode-org#3407:
here in typecode we had an improper import of ctypes.utils and this is fixed in a new release v30.0.1 of typecode
- aboutcode-org#3408 the setup.cfg and setup-mini.cfg was not aligned for plugin entrypoints.
This is a major release with major API and output format changes and signicant feature updates.
In particular the output format has changed for the licenses and packages, and also for some of the command line options.
The output format version is now 3.0.0.
We have a new
--todo
CLI option to have todo items for reviewers with ambiguous license detections and package detections. This adds a new codebase-level attributetodo
which is a list of ambiguous detections. Here the ambiguous detection attributes are: - detection_id: same license unique license detection identifier or top-levelpackage identifier.
- detection: this is either a license_detection or a package_data mapping.
- review_comments: to explain the type of ambiguous detections.
Update
GemfileLockParser
to track the gem which the Gemfile.lock is for, which we assign to the newGemfileLockParser.primary_gem
field. UpdateGemfileLockHandler.parse()
to handle the case where there is a primary gem detected from a gemfile.lock. If there is a primary gem, a singlePackage
is created and the detected gem data within the gemfile.lock are assigned as dependencies. If there is no primary gem, then all of the dependencies are collected into Package with no name and yielded.Fix issue where dependencies were not reported when scanning an extracted Python project by modifying
BaseExtractedPythonLayout.assemble()
to favor using package data from a PKG-INFO file from an egg-info directory. Package data from a PKG-INFO file from an egg-info directory contains the dependency information collected from the requirements.txt file along side PKG-INFO.Fix issue where we were returning incorrect purl package
type
for cocoapods.pods
was being returned as a purl type for cocoapods, it should becocoapods
instead. https://github.com/package-url/purl-spec/blob/master/PURL-TYPES.rst#cocoapodsCode for parsing a Maven POM, npm package.json, freebsd manifest and haxelib JSON have been separated into two functions: one that creates a PackageData object from the parsed Resource, and another that calls the previous function and yields the PackageData. This was done such that we can use the package manifest data parsing code outside of the scancode-toolkit context in other libraries.
The PackageData model now includes a
holder
field, which is populated with holder data extracted from the copyright field if copyright data is present, otherwise it remains empty.DatafileHandlers now have a classmethod named
get_top_level_resources()
, which is supposed to yield the top-level Resources of a Package codebase, relative to a Package manifest file.maven.MavenPomXmlHandler
is the first DatafileHandler that has this method implemented.
The SPDX license list has been updated to the latest v3.20
This is a major update to license detection where we now combine one or more license matches in a larger license detection. This approach improves the accuracy of license detection and removes a larger number of false positive or ambiguous license detections. See for details aboutcode-org#2878
There is a new
license_detections
codebase level attribute with all the unique license detections in the whole scan, both in resources and packages. This has the 3 attributes also present in package/resource level license detections:license_expression
,identifier
anddetection_log
(present optionally if the--license-diagnostics
option is enabled) with an additional attribute:count
: Number of times in the codebase this unique license detection was encountered.
The data structure of the JSON output has changed for licenses at file level:
- The
licenses
attribute is deleted. - A new
license_detections
attribute contains license detections in that file. This object has three attributes:license_expression
,identifier
andmatches
.matches
is a list of license matches and is roughly the same aslicenses
in the previous version with additional structure changes detailed below. Identifier is the detected license-expression with an UUID generated from the content ofmatches
such that this is unique for unique detections. We also have another attributedetection_log
with diagnostics information if the--license-diagnostics
option is enabled. - A new attribute
license_clues
contains license matches with the same data structure as thematches
attribute inlicense_detections
. This contains license matches that are mere clues and where not considered to be a proper conclusive license detection. - The
license_expressions
list of license expressions is deleted and replaced by adetected_license_expression
single expression. Similarlyspdx_license_expressions
was removed and replaced bydetected_license_expression_spdx
. - See license updates documentation for examples and details.
- The
The data structure of license attributes in
package_data
and the codebase levelpackages
has been updated accordingly:There is a new
license_detections
attribute for the primary, top-level declared licenses of a package and another_license_detections
attribute for the other secondary detections.The
license_expression
is replaced by thedeclared_license_expression
andother_license_expression
attributes with their SPDX counterpartsdeclared_license_expression_spdx
andother_license_expression_spdx
. These expressions are parallel to detections.The
declared_license
attribute is renamedextracted_license_statement
and is now a YAML-encoded string, which can be parsed to recreate the original extracted license statement. Previously this used to be nested python objects lists/dicts/string, but now this is always a YAML string.See license updates documentation for examples and details.
The license matches structure has changed: we used to report one match for each license
key
of a matched license expression. We now report instead one single match for each matched license expression, and list the license keys as alicenses
attribute. This avoids data duplication. Inside each match, we list each match and matched rule attributred directly avoiding nesting. See license updates doc for examples and details.There are new and codebase level attributes with
--license-references
to report reference license metadata and texts once for each license matched across the scan; we now have two codebase level attributes:license_references
andlicense_rule_references
that list unique detected license and license rules. for examples and details. This reference data is also removed from license matches in all levels i.e. from codebase, package and resource level license detections and resource level license clues, irrespective of this CLI option being used, i.e. default with--licenses
. See license updates documentationWe replaced the
scancode --reindex-licenses
command line option with a new separate command namedscancode-reindex-licenses
.- The
--reindex-licenses-for-all-languages
CLI option is also moved to thescancode-reindex-licenses
command as an option--all-languages
. - We can now detect licenses using custom license texts and license rules stored in a directory or packaged as a plugin for consistent reuse and deployment.
- There is an
--additional-directory
option with thescancode-reindex-licenses
command to add the licenses from a directory. - There is also a
--only-builtin
option to use ony builtin licenses ignoring any additional license plugins. - See aboutcode-org#480 for more details.
- The
We combined the license data file and text file of each license in a single file with a .LICENSE extension. The .yml data file is now included at the top of each .LICENSE file as "YAML frontmatter". The same applies to license rules and their .RULE and .yml files. This halves the number of data files from about 60,000 to 30,000. Git line history is preserved for the combined
text + yml files.
There is a new console script
scancode-license-data
to export license data in JSON, YAML and HTML, with indexes and a static website for use in the licensedb web site. This becomes the API way to getr scancode license data.The deprecated "--is-license-text" option has been removed. This is now built-in with the --license-text option and --info and exposed with the "percentage_of_license_text" attribute.
The license dump() has been modified to add an extra space at empty newlines for license files which also have multiple indentation levels as this was generating invalid YAML output files when
--license-text
or--license-references
was enabled.A bugfix has been added to the
--unknown-licenses
option where we would crash when using this option without using--matched-text
option. This is now working correctly and also better tested.
This is a minor hotfix release.
This fix a crash when parsing a .deb Dbeian package filename reported in aboutcode-org#3259
This is a minor fix backport release.
This adds license rule changes and was requested here: aboutcode-org#3310 This was originally merged in #3218 and included in the latest release v32.x, and is also being backported now to v31.2.x
This is a minor bugfix release.
There is a fix for an installation issue with the new "attrs" version 22.x when scancode-toolkit is installed using pip. This is resolved by vendoring attrs for use in licensedcode" to work around aboutcode-org#3179
This is a minor bugfix release.
There is a fix for an installation issue with the new "packaging" version 22.0. This is replaced by a fork named "packvers" to work around pypa/packaging#530
We also improved the compatibility for pre-built wheels and now build one wheel for each Python version to work around some Python pickle bug.
This is a minor release to fix a typo in a date.
This is a minor release with small bug fixes and minor feature updates.
- Update SPDX license list to 3.18
- Improve how we discard license matches that are "gibberish"
- And new and improve existing license and license detection rules
This is a minor release with a bug fix.
- Do not display tracing/debug outputs at runtime
This is a minor release with critical bug fixes and minor updates.
- Fix a critical bug in license detection
- Add a few new licenses and license detection rules
This is a minor release with small bug fixes and minor updates.
- Fix minor bug in PyPI package assembly
- Add a few new licenses and license detection rules
- Update commoncode
This is a minor release with small bug fixes and minor updates.
- Fix minor bug in PyPI package assembly
- Add a few new licenses and license detection rules
- Update commoncode
This is a major release with important bug and security fixes, new and improved features and API changes.
Note that we no longer support Python 3.6. Use Python 3.7+ instead.
- The data structure of the JSON output has changed for copyrights, authors and holders. We now use a proper name for attributes and not a generic "value".
- The data structure of the JSON output has changed for packages. We now
return "package_data" package information at the manifest file-level
rather than "packages". This has all the data attributes of a "package_data"
field plus others: "package_uuid", "package_data_files" and "files".
- There is a a new top-level "packages" attribute that contains package instances that can be aggregating data from multiple manifests.
- There is a a new top-level "dependencies" attribute that contains each dependency instance, these can be standalone or releated to a package. These contain a new "extra_data" object.
- There is a new resource-level attribute "for_packages" which refers to packages through package_uuids (pURL + uuid string).
- The data structure for HTML output has been changed to include emails and urls under the "infos" object. The HTML template displays output for holders, authors, emails, and urls into separate tables like "licenses" and "copyrights".
- The data structure for CSV output has been changed to rename the Resource column to "path". "copyright_holder" has been renamed to "holder"
- The license clarity scoring plugin has been overhauled to show new license clarity criteria. More details of the new scoring criteria are provided below.
- The functionality of the summary plugin has been imprived to provide declared
origin and license information for the codebase being scanned. The previous
summary plugin functionality has been preserved in the new
tallies
plugin. More details are provided below. - ScanCode has adopted the new code skeleton from https://github.com/nexB/skeleton
The key change is the location of the virtual environment. It used to be
created at the root of the scancode-toolkit directory. It is now created
under the
venv
subdirectory. You mus be aware of this if you use ScanCode from a git clone DatafileHandler.assemble()
,DatafileHandler.assemble_from_many()
, and the other.assemble()
methods from the other Package handlers from packagedcode, have been updated to yield Package items before Dependency or Resource items. This is particulary important in the case where we are calling theassemble()
method outside of the scancode-toolkit context, where we need to ensure that a Package exists before we assocate a Resource or Dependency to it.
- The data structure in the JSON is now using consistently named attributes as opposed to plain values.
- Several copyright detection bugs have been fixed.
- French and German copyright detection is improved.
- Some spurious trailing dots in holders are not stripped.
- There have been significant license detection rules and licenses updates:
- 107 new licenses have been added (total is now 1954)
- 6780 new license detection rules have been added (total is now 32259)
- 6753 existing false positive license rules have been removed (see below).
- The SPDX license list has been updated to the latest v3.17
- The rule attribute "only_known_words" has been renamed to "is_continuous" and its meaning has been updated and expanded. A rule tagged as "is_continuous" can only be matched if there are no gaps between matched words, be they stopwords, extra unknown or known words. This improves several false positive license detections. The processing for "is_continous" has been merged in "key phrases" processing below.
- Key phrases can now be defined in a RULE text by surrounding one or more words with double curly braces {{ and }}. When defined a RULE will only match when the key phrases match exactly. When all the text of rule is a "key phrase", this is the same as being "is_continuous".
- The "--unknown-licenses" option now also detects unknown licenses using a simple and effective ngrams-based matching in area that are not matched or weakly matched. This helps detects things that look like a license but are not yet known as licenses.
- False positive detection of "license lists" like the lists seen in license and package management tools has been entirely reworked. Rather than using thousands of small false positive rules, there is a new filter to detect a long run of license references and tags that is typical of license lists. As a results, thousands of rules have been replaced by a simpler filter, and the license detection is more accurate, faster and has fewer false positives.
- The new license flag "is_generic" tags licenses that are "generic" licenses such as "other-permissive" or "other-copyleft". This is not yet returned in the JSON API.
- When scanning binary files, the detection of single word rules is filtered when surrounded by gibberish or mixed case. For instance $#%$GpL$ is a false positive and is no longer reported.
- Several rules we tagged as is_license_notice incorrectly but were references and have been requalified as is_license_reference. All rules made of a single ord have been requalified as is_license_reference if they were not qualified this way.
- Matches to small license rules (with small defined as under 15 words) that are scattered over too many lines are now filtered as false matches.
- Small, two-words matches that overlap the previous or next match by by the word "license" and assimilated are now filtered as false matches.
- The new --licenses-reference option adds a new "licenses_reference" top level attribute to a scan when using the JSON and YAML outputs. This contains all the details and the full text of every license seen in a file or package license expression of a scan. This can be added added after the fact using the --from-json option.
- New experimental support for non-English licenses. Use the command ./scancode --reindex-licenses-for-all-languages to index all known non-English licenses and rules. From that point on, they will be detected. Because of this some licenses that were not tagged with their languages are now correctly tagged and they may not be detected unless you activate this new indexing feature.
- Major changes in package detection and reporting, codebase-level attribute packages
with one or more package_data and files for the packages are reported.
The specific changes made are:
- The resource level attribute packages has been renamed to package_data, as these are really package data that are being detected, such as manifests, lockfiles or other package data. This has the data attributes of a package_data field plus others: package_uuid, package_data_files and files.
- A new top-level attribute packages has been added which contains package instances created from package_data detected in the codebase.
- A new codebase level attribute dependencies has been added which contains dependency instances created from lockfiles detected in the codebase.
- The package attribute root_path has been deleted from package_data in favour of the new format where there is no root conceptually, just a list of files for each package.
- There is a new resource-level attribute for_packages which refers to packages through package_uids (pURL + uuid string). A package_adder function is now used to associate a Package to a Resource that is part of it. This gives us the flexibility to use the packagedcode Package handlers in other contexts where for_packages on Resource is not implemented in the same way as scancode-toolkit.
- The package_data attribute dependencies (which is a list of DependentPackages), now has a new attribute resolved_package with a package data mapping. Also the requirement attribute is renamed to extracted_requirement. There is a new extra_data to collect extra data as needed.
- For Pypi packages, python_requires is treated as a package dependency.
- Update JavaScript package handlers to handle aliases in npm and yarn manifests.
- We are moving away from the original license clarity scoring designed for ClearlyDefined in the license clarity score plugin. The previous license clarity scoring logic produced a score that was misleading when it would return a low score due to the stringent scoring criteria. We are now using more general criteria to get a sense of what provenance information has been provided and whether or not there is a conflict in licensing between what licenses were declared at the top-level key files and what licenses have been detected in the files under the top-level.
- The license clarity score is a value from 0-100 calculated by combining the
weighted values determined for each of the scoring elements:
- Declared license:
- When true, indicates that the software package licensing is documented at top-level or well-known locations in the software project, typically in a package manifest, NOTICE, LICENSE, COPYING or README file.
- Scoring Weight = 40
- Identification precision:
- Indicates how well the license statement(s) of the software identify known licenses that can be designated by precise keys (identifiers) as provided in a publicly available license list, such as the ScanCode LicenseDB, the SPDX license list, the OSI license list, or a URL pointing to a specific license text in a project or organization website.
- Scoring Weight = 40
- License texts:
- License texts are provided to support the declared license expression in files such as a package manifest, NOTICE, LICENSE, COPYING or README.
- Scoring Weight = 10
- Declared copyright:
- When true, indicates that the software package copyright is documented at top-level or well-known locations in the software project, typically in a package manifest, NOTICE, LICENSE, COPYING or README file.
- Scoring Weight = 10
- Ambiguous compound licensing:
- When true, indicates that the software has a license declaration that makes it difficult to construct a reliable license expression, such as in the case of multiple licenses where the conjunctive versus disjunctive relationship is not well defined.
- Scoring Weight = -10
- Conflicting license categories:
- When true, indicates that the declared license expression of the software is in the permissive category, but that other potentially conflicting categories, such as copyleft and proprietary, have been detected in lower level code.
- Scoring Weight = -20
- Declared license:
The summary plugin's behavior has been changed. Previously, it provided a count of the detected license expressions, copyrights, holders, authors, and programming languages from a scan.
We have preserved this functionality by creating a new plugin called
tallies
. All functionality of the previous summary plugin have been preserved in the tallies plugin.The new summary plugin now attempts to determine a declared license expression, declared holder, and the primary programming language from a scan. And the updated license clarity score provides context on the quality of the license information provided in the codebase key files.
The new summary plugin also returns lists of tallies for the other "secondary" detected license expressions, copyright holders, and programming languages.
All summary information is provided at the codebase-level attribute named summary
.
- Added new outputs for the CycloneDx format. The CLI now exposes options to produce CycloneDx BOMs in either JSON or XML format
- A new field
warnings
has been added to the headers of ScanCode toolkit output that contains any warning messages that occur during a scan. - The CSV output format --csv option is now deprecated. It will be replaced by new CSV and tabular output formats in the next ScanCode release. Visit aboutcode-org#3043 to provide inputs and feedback.
Scancode Data Output Version is now 2.0.0.
Changes:
Rename resource level attribute packages to package_data.
Add top-level attribute packages.
Add top-level attribute dependencies.
Add resource-level attribute for_packages.
Remove package-data attribute root_path.
The fields of the license clarity scoring plugin have been replaced with the following fields. An overview of the new fields can be found in the "License Clarity Scoring Update" section above.
- score
- declared_license
- identification_precision
- has_license_text
- declared_copyrights
- conflicting_license_categories
- ambigious_compound_licensing
The fields of the summary plugin have been replaced with the following fields. An overview of the new fields can be found in the "Summary Plugin Update" section above.
- declared_license_expression
- license_clarity_score
- declared_holder
- primary_language
- other_license_expressions
- other_holders
- other_languages
A new field
run_order
has been added toBasePlugin
and set on all ScanCode plugins. Plugin run order and output order are now set independently of one another.
- Various documentation files have been updated to reflects API changes and correct minor documentation issues.
- The main package API function get_package_infos is deprecated, and replaced by get_package_data.
- The Resources path are always the same regardless of the strip-root or full-root arguments.
- The license cache consistency is not checked anymore when you are using a git checkout. The SCANCODE_DEV_MODE tag file has been removed entirely. Use instead the --reindex-licenses option to rebuild the license index.
- We can now regenerate test fixtures using the new SCANCODE_REGEN_TEST_FIXTURES environment variable. There is no need to replace the regen=False with regen=True in the code.
- Added support for usage of shortcut flags - -A or --about - -q or --quiet - -v or --verbose - -V or --version can be used.
This is a bug fix release for these bugs:
We now return the package in the summaries as before.
There is also a minor API change: we no longer return a count of "null" empty values in the summaries for license, copyrights, etc.
Thank you to: - Thomas Druez @tdruez
This is a minor bug fix release for these bugs:
We now correctly work with all supported Click versions.
Thank you to: - Konstantin Kochin @vznncv - Thomas Druez @tdruez
This is a major release with new features, and several bug fixes and improvements including major updates to the license detection.
We have droped using calendar-based versions and are now switched back to semver versioning. To ensure that there is no ambiguity, the new major version has been updated from 21 to 30. The primary reason is that calver was not helping integrators to track major version changes like semver does.
We also have introduced a new JSON output format version based on semver to version the JSON output format data structure and have documented the new versioning approach.
- The Debian packages declared license detection in machine readable copyright files and unstructured copyright has been significantly improved with the tracking of the detection start and end line of a license match. This is not yet exposed outside of tests but has been essential to help improve detection.
- Debian copyright license detection has been significantly improved with new license detection rules.
- Support for Windows packages has been improved (and in particular the handling of Windows packages detection in the Windows registry).
- Support for Cocoapod packages has been significantly revamped and is now working as expected.
- Support for PyPI packages has been refined, in particular package descriptions.
- The copyright detection accuracy has been improved and several bugs have been fixed.
There have been some significant updates in license detection. We now track 34,164 license and license notices:
- 84 new licenses have been added,
- 34 existing license metadata have been updated,
- 2765 new license detection rules have been added, and
- 2041 existing license rules have been updated.
- Several license detection bugs have fixed.
- The SPDX license list 3.14 is now supported and has been synced with the licensedb. We also include the version of the SPDX license list in the ScanCode YAML, JSON and the SPDX outputs, as well as display it with the "--version" command line option.
- Unknown licenses have a new flag "is_unknown" in their metadata to identify them explicitly. Before that we were just relying on the naming convention of having "unknown" as part of a license key.
- Rules that match at least one unknown license have a flag "has_unknown" set and returned in the match results.
- Experimental: License detection can now "follow" license mentions that reference another file such as "see license in COPYING" where we can relate this mention to the actual license detected in the COPYING file. Use the new "--unknown-licenses" command line option to test this new feature. This feature will evolve significantly in the next version(s).
- The SPDX output now has the mandatory ids attribute per SPDX spec. And we support SPDX 2.2 and SPDX license list 3.14.
- There is a new "--no-check-version" CLI option to scancode to bypass live, remote outdated version check on PyPI
- The scan results and the CLI now display an outdated version warning when the installed ScanCode version is older than 90 days. This is to warn users that they are relying on outdated, likely buggy, insecure and inaccurate scan results and encourage them to update to a newer version. This is made entirely locally based on date comparisons.
- We now display again the command line progressbar counters correctly.
- A bug has been fixed in summarization.
- Generated code detection has been improved with several new keywords.
Many thanks to the many contributors that made this release possible and in particular:
- Akanksha Garg @akugarg
- Armijn Hemel @armijnhemel
- Ayan Sinha Mahapatra @AyanSinhaMahapatra
- Bryan Sutula @sutula
- Chin-Yeung Li @chinyeungli
- Dennis Clark @DennisClark
- dyh @yunhua-deng
- Dr. Frank Heimes @FrankHeimes
- gunaztar @gunaztar
- Helio Chissini de Castro @heliocastro
- Henrik Sandklef @hesa
- Jiyeong Seok @dd-jy
- John M. Horan @johnmhoran
- Jono Yang @JonoYang
- Joseph Heck @heckj
- Luis Villa @tieguy
- Konrad Weihmann @priv-kweihmann
- mapelpapel @mapelpapel
- Maximilian Huber @maxhbr
- Michael Herzog @mjherzog
- MMarwedel @MMarwedel
- Mikko Murto @mmurto
- Nishchith Shetty @inishchith
- Peter Gardfjäll @petergardfjall
- Philippe Ombredanne @pombredanne
- Rainer Bieniek @rbieniek
- Roshan Thomas @Thomshan
- Sadhana @s4-2
- Sarita Singh @itssingh
- Siddhant Khare @Siddhant-K-code
- Soim Kim @soimkim
- Thomas Druez @tdruez
- Thorsten Godau @tgodau
- Yunus Rahbar @yns88
This is a minor bug fix release primarily for Windows installation. There is no feature change.
- Application installation on Windows works again. This fixes #2610
- We now build and test app bundles on all supported Python versions: 3.6 to 3.9
Thank you to @gunaztar for reporting the #2610 bug
- Documentation is updated to reference supported Python versions 3.6 to 3.9
This is a minor release with several bug fixes, major performance improvements and support for new and improved package formats
Many thanks to every contributors that made this possible and in particular:
- Abhigya Verma @abhi27-web
- Ayan Sinha Mahapatra @AyanSinhaMahapatra
- Dennis Clark @DennisClark
- Jono Yang @JonoYang
- Mayur Agarwal @mrmayurgithub
- Philippe Ombredanne @pombredanne
- Pierre Tardy @tardyp
- Add new YAML-formatted output. This is exactly the same data structure as for the JSON output
- Add new Debian machine readable copyright output.
- The CSV output "Resource" column has been renamed to "path".
- The SPDX output now has the mandatory DocumentNamespace attribute per SPDX specs #2344
- The copyright detection speed has been significantly improved with the tests taking roughly 1/2 of the time to run. This is achieved mostly by replacing NLTK with a the minimal and simplified subset we need in a new library named pygmars.
- Add new licenses: now tracking 1763 licenses
- Add new license detection rules: now tracking 29475 license detection rules
- We have also improved license expression parsing and processing
- The Debian packages declared license detection has been significantly improved.
- The Alpine packages declared license detection has been significantly improved.
- There is new support for shell parsing and Alpine packages APKBUILD data collection.
- There is new support for various Windows packages detection using multiple techniques including MSI, Windows registry and several more.
- There is new support for Distroless Debian-like installed packages.
- There is new support for Dart Pub package manifests.
This is a major new release with important security and bug fixes, as well as significant improvement in license detection.
Many thanks to every contributors that made this possible and in particular:
- Akanksha Garg @akugarg
- Ayan Sinha Mahapatra @AyanSinhaMahapatra
- Dennis Clark @DennisClark
- François Granade @farialima
- Hanna Modica @hanna-modica
- Jelmer Vernooij @jelmer
- Jono Yang @JonoYang
- Konrad Weihmann @priv-kweihmann
- Philippe Ombredanne @pombredanne
- Pierre Tardy @tardyp
- Sarita Singh @itssingh
- Sebastian Thomas @sebathomas
- Steven Esser @majurg
- Till Jaeger @LeChasseur
- Thomas Druez @tdruez
- The configure scripts for Linux, macOS and Windows have been entirely refactored and should be considered as new. These are now only native scripts (.bat on Windows and .sh on POSIX) and the Python script etc/configure.py has been removed. Use the PYTHON_EXECUTABLE environment variable to point to alternative non-default Python executable and this on all OSes.
Update minimum versions and pinned version of thirdparty dependencies to benefit from latest improvements and security fixes. This includes in particular this issues:
- pkg:pypi/pygments: (low severity, limited impact) CVE-2021-20270, CVE-2021-27291
- pkg:pypi/lxml: (low severity, likely no impact) CVE-2021-28957
- pkg:pypi/nltk: (low severity, likely no impact) CVE-2019-14751
- pkg:pypi/jinja2: (low severity, likely no impact) CVE-2020-28493, CVE-2019-10906
- pkg:pypi/pycryptodome: (high severity) CVE-2018-15560 (dropped since no longer used by pdfminer)
- The JSON output packages section has a new "extra_data" attributes which is a JSON object that can contain arbitrary data that are specific to a package type.
- The SPDX license list has been update to 3.13
- Add 42 new and update 45 existing licenses.
- Over 14,300 new and improved license detection rules have been added. A large number of these (~13,400) are to avoid false positive detection.
- Improved speed and fixed some timeout issues. Fixed minor misc. bugs.
- Allow calling copyright detection from text lines to ease integration
- A new "extra_data" dictionary is now part of the "packages" data in the returned JSON. This is used to store arbitrary type-specific data that do cannot be fit in the Package data structure.
- The Debian copyright files license detection has been reworked and significantly improved.
- The PyPI package detection and manifest parsing has been reworked and significantly improved.
- The detection of Windows executables and DLLs metadata has been enabled. These metadata are returned as packages.
- Most third-party libraries have been updated to their newer versions. Some dependency constraints have been relaxed to help some usage as a library.
- The on-commit CI tests now validate that we can install from PyPI without problem.
- Fix several installation issues.
- Add new function to detect copyrights from lines.
This is a major version with no breaking API changes. Heads-up: the next version will bring up some significant API changes summarized above.
- Update dependency versions for security fixes.
- Add 22 new licenses and update 71 existing licenses
- Update licenses to include the SPDX license list 3.12
- Improve license detection accuracy with over 2,300 new and updated license detection rules
- Undeprecate the regexp license and deprecate the hs-regexp-orig license
- Improve license db initial load time with caching for faster scancode start time
- Add experimental SCANCODE_LICENSE_INDEX_CACHE environment variable to point to an alternative directory where the license index cache is stored (as opposed to store this as package data.)
- Ensure that license short names are not more than 50 characters long
- Thank you to:
- Dennis Clark @DennisClark
- Chin-Yeung Li @chinyeungli
- Armijn Hemmel @armijnhemel
- Sarita Singh @itssingh
- Akanksha Garg @akugarg
- Detect SPDX-FileCopyrightText as defined by the FSFE Reuse project Thank you to Daniel Eder @daniel-eder
- Fix bug when using the --filter-clues command line option Thank you to Van Lindberg @VanL
- Fixed copyright truncation bug Thank you to Akanksha Garg @akugarg
- Add support for installed RPMs detection internally (not wired to scans) Thank you to Chin-Yeung Li @chinyeungli
- Improve handling of Debian copyright files with faster and more accurate license detection Thank you to Thomas Druez @tdruez
- Add new built-in support for installed_files report. Only available when used as a library.
- Improve support for RPM, npm, Debian, build scripts (Bazel) and Go packages Thank you to: - Divyansh Sharma @Divyansh2512 - Jonothan Yang @JonoYang - Steven Esser @majurg
- Add new support to collect information from semi-structured Readme files and related metadata files. Thank you to Jonothan Yang @JonoYang and Steven Esser @majurg
- Add new Debian copyright-formatted output. Thank you to Jelmer Vernooij @jelmer
- Fix bug in --include where directories where not skipped correctly Thank you to Pierre Tardy @tardyp
- Update the way tests assertions are made Thank you to Aditya Viki @adityaviki
- Thank you to Aryan Kenchappagol @aryanxk02
- Resolve reported installation issues on macOS, Windows and Linux
- Stop using extras for a default wheel installation
- Build new scancode-toolkit-mini package with limited dependencies for use when packaging in distros and similar
- The new Dockerfile will create smaller images and containers. Thank you to Viktor Tiulpin @tiulpin
- Over 150 new and updated licenses
- Support the latest SPDX license list v3.11
- Improve license detection accuracy with over 740 new and improved license detection rules
- Fix license cache handling issues
- Update extractcode, typecode and their native dependencies for better support of latests versions of macOS.
- Update vulnerable LXML to version 4.6.2 to fix https://nvd.nist.gov/vuln/detail/CVE-2020-27783 This was detected thanks to https://github.com/nexb/vulnerablecode
- Drop support for Python 2 #295
- Drop support for 32 bits on Windows #335
- Add support for Python 64 bits on Windows 64 bits #335
- Add support for Python 3.6, 37, 3.8 and 3.9 on Linux, Windows and macOS. These are now tested on Azure.
- Add deprecation message for native Windows support #2366
- Improve license detection accuracy with over 8400 new license detection rules added or updated
- Remove the previously deprecated --license-diag option
- Include pre-built license index in release archives to speed up start #988
- Use SPDX LicenseRef-scancode namespace for all licenses keys not in SPDX
- Replace DEJACODE_LICENSE_URL with SCANCODE_LICENSEDB_URL at https://scancode-licensedb.aboutcode.org #2165
- Add new license flag in license detection results "is_license_intro" that is used to indicate that a license rule is a short license introduction statement (that typically may be reported as some unknown license)
- Add detection of package-installed files
- Add analysis of system package installed databases for Debian, OpenWRT and Alpine Linux packages
- Add support for Alpine Linux, Debian, OpenWRT.
- Improve detection with minor grammar fixes
- Adopt a new calendar date-based versioning for scancode-toolkit version numbers
- Update thirdparty dependencies and built-in plugins
- Allow installation without extractcode and typecode native plugins. Instead one can elect to install these or not to have a lighter footprint if needed.
- Update configuration and bootstrap scripts to support a new PyPI-like repository at https://thirdparty.aboutcode.org/pypi/
- Create new release scripts to populate released archives with just the required wheels of a given OS and Python version.
- Updated scancode.bat to handle % signs in the arguments #1876
- Collect Windows executable metadata #652
- Fix minor bugs
- Add Dockerfile to build docker image from ScanCode sources #2265
- Use commoncode, typecode and extractcode as external standalone packages #2233
- Do not fail if Debian status is missing #2224
- Report correct detected license text in binary #2226 #2227
- Improve copyright detection #2140
- Add new license rules for "bad" licenses #1899 @viragumathe5
- Improve copyright detection @WizardOhio24
- Improve tests @hanif-ali
- Add and improve support for package manifest for #2080 Go, Ruby gem gemspec, Cocoapod podspec, opam, Python PKG-INFO - Rohit Potter @rpotter12
- Add and improve support for package lockfiles for Pipfile.lock, requirements.tx, Cargo.lock - Rohit Potter @rpotter12
- Add new --max-depth option to limit sca depth - Hanif Ali @hanif-ali
- Add initial Debian packaging - @aj4ayushjain
- Add new documentation web site and documentation generation system
- The "headers" attribute in JSON outputs now contains a 'duration' field. #1942
- Rework packaging and third-party support handling: Create new scripts and process to provision, install and manage third-party dependencies - Abhishek Kumar @Abhishek-Dev09
- Improve CSV output and fix manifest path bug #1718 Aditya Viki8
- Add new documentation, as well as tools and process. Ayan Sinha Mahapatra
- Add new license detection rules - Ayan Sinha Mahapatra
- Improve license detection #1999 - Bryan Sutula
- Correct CC0 license #1984 - Carmen Bianca Bakker
- Add documentation for the usage of cpp_includes plugin - Chin Yeung Li
- Improve andling of npm package-lock.json #1993 - Chin Yeung Li
- Add new license detection rules - Gaupeng
- Improve documentation - Issei Horie
- Improve consolidation plugin - Jono Yang @JonoYang
- Improve Python wheels detection #1749 - Jono Yang @JonoYang
- Add support for BUCK and Bazel build scripts #1678 - Jono Yang @JonoYang
- Improve handing of ignores #1748 - Jono Yang @JonoYang
- Improved package models #1773 #1532 #1678 #1771 #1791 #1220 - Jono Yang @JonoYang
- Parse package lock files for Composer #1850, Yarn #1220, Gemfile.lock #1885 - Jono Yang @JonoYang
- Add parser for Alpine 'installed' file #2061 - Jono Yang @JonoYang
- Add support for Debian packagesinstalled files #2058 - Jono Yang @JonoYang
- Add new licenses -@Pratikrocks
- Improve support for DWARF, ELF and C++ include plugins #1712 #1752#1762 - Li Ha @licodeli
- Add support for parsing java class files #1712 #1726- Li Ha @licodeli
- Add new license detection rules - @MankaranSingh
- Add new duration field to JSON output #1937 - @MankaranSingh
- Add new rule for GPL historical note #1794 - Martin Petkov
- Add --replace-originals flag to extractcode -Maximilian Huber
- Improve Documentation - Michael Herzog
- Add new checksum type for sha256 - Nitish @nitish81299
- Improve documentation - Philippe Ombredanne
- Add new license detection rules and improve detection #1777 #1720 #1734 #1486 #1757 #1749 #1283 #1795 #2214 #1978
- Add new license detection rules and improve detection #2187 #2188 #2189 #1904 #2207 #1905 #419 #2190 #1910 #1911
- Add new license detection rules and improve detection #1841 #1913 #1795 #2124 #2145 #1800 #2200 #2206 #2186
- Allow to call "run_scan" as a function #1780
- Update license data to SPDX 3.7 #1789
- Collect matched license text correctly including with Turkish diacritics #1872
- Detect SPDX license identifiers #2007
- Add Windows 64 as supported platform #616
- Add and improve support for archive with lzip, lz4 and zstd #245 #2044 #2045
- Detect licenses in debian copyright files #2058
- Improve copyright detections #2140
- Improve FSF, unicode and Perl license detection - Qingmin Duanmu
- Add COSLi and ethical licenses - Ravi @JRavi2
- Add tests for extract.py and extract_cli.py - Ravi @JRavi2
- Add a new copyright to grammar - Richard Menzies
- Fix external URLs in documentation - Ritiek Malhotra
- Improve doc - Rohit Potter
- Correct configure on Windows and improve doc - Sebastian Schuberth
- Improve license detection. Add tests for #1758 and #1691- Shankhadeep Dey
- Improve tests of utility code - Shivam Chauhan
- Improve tests and documentation - Shivam Sandbhor @sbs2001
- Add new hippocratic license #1739 - Shivam Sandbhor
- Add new and improved licenses - Steven Esser @majurg
- Improve test suite - Steven Esser @majurg
- Improve fingerprint plugin #1690 - Steven Esser @majurg
- Add support for Debian packages #2058 - Steven Esser @majurg
- Improve FreeBSD support - @aj4ayushjain
- Add new plugins to get native code from install packages - @aj4ayushjain
- Fix license name and data - Thomas Steenbergen
- Improve runtime support for FreeBSD #1695 @knobix
- Update macOS image on azure pipeline @TG1999
- Improve documentation - @Vinay0001
Major new feature:
- Complete port to Python 3.6+ #295 @Abhishek-Dev09
New features:
- Improve package manifest support for #1643 RPMs, #1628 Cran, Python #1600, Maven #1649 Chef #1600 @licodeli @JonoYang
- Add plugin to collect ELF and LKM clues #1685 @licodeli
- Add runtime support for FreeBSD #1695 @knobix
- Add support to extract lzip archives #245 #989
- Add new consolidation plugin #1686 @JonoYang
Other features and fixes:
- Improve license detection #1700 #1704 #1701
- Improve copyright detection #1672
- Improve handling of plugins for native binaries @aj4ayushjain
- Add CODE OF CONDUCT @inishchith
- Fix extractcode error #749
- Add new version notification #111 #1688 @jdaguil
- Add partial suport for Python 3.6+ #295 @Abhishek-Dev09
- Add plugin to collect dwarf references #1167 @licodeli
- Add fingerprint plugin #1651 @arnav-mandal1234
- Add summary and consolidation plugin #1673
- Improve license detection #1606 #1659 #1675
- Improve copyright detection #1672
- Add owned files to package manifests #1554 @JonoYang
- Improve package manifest support for Conda #1147, Bower and Python @licodeli
- Add an option to include the original matched license text #1668 #260 @LemoShi
Minor bug fixes:
- A tracing flag was turned on in the summary module by mistake. Reported by @tdruez #1374
- Correct a Maven parsing error. Reported and fixed by @linexb #1373
- Set proper links in the README. Reported and fixed by @sschubert #1371
- No changes from v3.0.1
- License detection:
- Add new and improved licenses and license detection rules #1334 #1335 #1336 #1337 ##1357
- Fix-up the license text inside the bsl-*.LICENSE files #1338 by @fviernau
- Add tests for commnon NuGet license bare URLs (until recently NuGet nupsec only had a license URL as licensing documentation)
- Add a license for the PSK contributions to OpenSSL #1341 by @fviernau
- Improve License Match scoring and filtering for very short rules
- Do not run license and copyright detection on media files: Media should not contain text #1347 #1348
- Detect scea-1.0 license correctly #1346
- Do not detect warranty disclaimer as GPL #1345
- Support quoted SPDX expressions and more comment marker prefixes
- Use Free Restricted category for fraunhofer-fdk-aac-codec #1352 by @LeChasseur
- Remove the spdx_license_key from here-proprietary #1360 by @sschuberth
- Add new post-scan plugin to tag a file containing only license #1366
- Add new license #1365 and rules #1358
- Packages:
- Improve npm vcs_url handling #1314 by @majurg
- Improve Maven POM license detection #1344
- Add Maven POM URL detection
- Recognize .gem archives as packages
- Improve parsing of Pypi Python setup.py
- Improve package summaries. Add new plugin to improve package classification #1339
- Other:
- Fix doc typo by #1329 @farialima
- Add new experimental pre-scan plugin to ignore binaries
This is the penultimate pre-release of what will come up for 3.0 with some API change for packages.
- API changes:
- Streamline Package models #1226 #1324 and #1327. In particular the way checksums are managed has changed
- Other changes:
- Copyright detection improvements #1305 by @JonoYang
- Correct CC-BY V3.0 and V4.0 license texts by correct one by @sschuberth #1320
- Add new and improved licenses and license detection rules including the latest SPDX list 3.4 and #1322 #1324
- Rename proprietary license key to proprietary-license
- Rename commercial license key to commercial-license
- Improve npm package.json handling #1308 and #1314 by @majurg
This is a close-to-final pre-release of what will come up for 3.0 with some API change for packages.
- API changes:
- In Package models, rename normalized_license to license_expression and add license detection on the declared_license to populate the license_expression #1092 #1268 #1278
- Outputs:
- Do not open output files until the command lines are validated as correct #1266
- The html-app output is marked as DEPRECATED. Use the AboutCode manager app instead #
- Ensure HTML outputs can deal with non-ASCII file paths without crashsing #1292
- JSON outputs now use a "headers" attributes for top-level scan headers #
- SPDX output is now possible even without "--info" SHA1 checksums. This creates a partially valid document
- LicenseRef for non-SPDX ScanCode licenses are named as "LicenseRef-scancode-<scancode key>" #
- license_expression are correctly included in the CSV output #1238
- do not crash with multiple outputs #1199
- Ensure CSV output include packages #1145
- License detection:
- Ensure license expressions are present in CSV output #1238
- Fix 'license detection tests' collection on Windows #1182
- An optional "relevance" attribute has been added to the license YAML attributes. This is to store the relevance to e matched .LICENSE text when used as a rule.
- Licenses have been synchronized with the latest v3.3 SPDX license list and the latest DejaCode licenses #1242
- Duplicated SPDX keys have been fixed #1264
- Add new and improved license detection rules #1313 #1306 #1302 #1298 #1293 #1291 #1289 #1270 #1269 #1192 #1186 #1170 #1164 #1128 #1124 #1112 #1110 #1108 #1098 #1069 #1063 #1058 #1052 #1050 #1039 #987 #962 #929
- Packages:
- Add support for haxe "haxelib" package manifests #1227
- Remove code_type attribute from Package models
- In Package models, rename normalized_license to license_expression and add license detection on the declared_license to populate the license_expression #1092 #1268 #1278
- Improve data returned for PHP Composer packages
- Add PackageURL to top level output for packages
- Report nuget as proper packages #1088
- Summary:
- improve summary and license score computation #1180
- Misc:
- Minor copyright detection improvements #1248 #1244 #1234 #1198 #1123 #1087
- Ensure all temporary directories are prefixed with "scancode-"
- Drop support for Linux 32 bits #1259
- Do not attempt to scan encrypted PDF documents
- Improve "data" files detection
- ScanCode can be installed from Pypi correctly #1214 #1183
- Improve reporting of programming languages #1194
- Fix running post scan plugins #1141
- Command line:
- Always delete temporary files when no longer needed. #1231
- Add a new --keep-temp-files option to keep temp files which is false by default. #1231
- Improve dependent plugin activation so it is done only when needed #1235
- Internals:
- Improve reusing resource.VirtualCode
- Place all third-party packages under thirdparty #1219 and update ABOUT files
Credits: Many thanks to everyone that contributed to this release with code and bug reports
- @nicoddemus
- @chinyeungli
- @johnmhoran
- @jonasob
- @DennisClark
- @arthur657834
- @JonoYang
- @armijnhemel
- @furuholm
- @mjherzog
- @sschuberth
- @MartinPetkov
- @jhgoebbert
- @bobgob
- @majurg
- @tdruez
- @tomeks666
- @geneh
- @jonassmedegaard
and many other that I may have missed.
No changes.
- Add declared license normalization #1092
- Add new and improved license rules
- Add mising and clean up ABOUT files for all embedded third-party libraries
- Improve npm package.json handling (better keuword support)
- Update thirdparty libraries #1224
Credits: Many thanks to everyone that contributed to this release with code and bug reports
This is a minor pre-release of what will come up for 3.0 with no API change.
- Place all third-party packages under thirdparty #1219
Credits: Many thanks to everyone that contributed to this release with code and bug reports
- @JonoYang
This is a pre-release of what will come up for 3.0 with several API changes related to packages.
- Add Package URL field to top-level package output #1149
- --package option should collect homepage URL for packages #645
- Support installation from Pypi and update various third-parties to their latest version #1183
- Fix bug where multiple outputs with --html would crash scancode #
- Add new and improved licenses and license detection rules #1192 #1186
- Ensure that plugin failure trigger a proper error exit code #1199
- Allow plugins to contribute codebase-level attributes in addition to resource-level attributes.
- Output plugins can now be called from code #1148
- Fix incorrect copyright detection #1198
- Detect programming language more strictly and efficiently #1194
- Use simpler list of source package URLs/purls #1206
- Add purl to the packages data #1149
- Use direct attributes for package checksums #1189
- Remove package_manifest attribute for packages
- Add new Package "manifest_path" attribute which is a relative path to the manifest file if any, such as a Maven .pom or a npm package.json.
Credits: Many thanks to everyone that contributed to this release with code and bug reports
- @MartinPetkov
- @majurg
- @JonoYang
This is a pre-release of what will come up for 3.0 with an API change.
- API change:
- The returned copyright data structure has changed and is now simpler and less nested
- Licenses:
- Add new license and rules and improve licene rules #1186 #1108 #1124 #1171 #1173 #1039 #1098 #1111
- Add new license clarity scoring #1180 This is also for use in the ClearlyDefined project
- Add is_exception to license scan results #1159
- Copyrights:
- Copyright detection has been improved #930 #965 #1103
- Copyright data structure has been updated
- Packages:
- Add support for FreeBSD packages (ports) #1073
- Add support for package root detection
- Detect nuget packages correctly @1088
Misc:
- Add facet, classification and summarizer plugins #357
- Fix file counts #1055
- Fix corrupted license cache error
- Upgrade all thridparty libraries #1070
- De-vendor prebuilt binaries to ease packaging for Linux distros #469
Credits: Many thanks to everyone that contributed to this release with code and bug reports
- @selmf
- @paralax
- @majurg
- @mueller-ma
- @MartinPetkov
- @techytushar
This is a major pre-release of what will come up for 3.0. with significant packages and license API changes.
- API changes:
- Simplify output option names #789
- Update the packages data structure and introduce Package URLs #275
- Add support for license expressions #74 with full exceptions support
- Licenses:
- Add support for license expressions #74 with full exceptions support
- Enable SPDX license identifier match #81
- Update and change handling of composite licenses now that we support expressions
- Symchronize licenses with latest from SPDX and DejaCode #41
- Add new licenses ofr odds and ends: other-permissive and other-copyleft
- refine license index cache handling
- remove tests without value
- Add new license policy plugin #214, #880
- Packages:
- Split packages from package_manifest #1027. This is experimental The packages scan return now a single package_manifest key (not a list) And a post_scan plugin (responding to the same --package) option perform a roll-up of the manifest informationat the proper level for a package type as the "packages" attribute (which is still a list). For instance a package.json "package_manifest" will end up having a "packages" entry in its parent directory.
- Include and return Package URLs (purl) #805 and #275
- Major rework of the package data structure #275 - Rename asserted_license to declared_licensing #275 - Add basic Godeps parsing support #275 - Add basic gemspec and Rubygems parsing support #275 - Add basic Gemfile.lock parsing support #275 - Add basic Win DLL parsing support #275 - Replace MD5/SHA1 by a list of checksums #275 - Use a single download_url, not a list #275 - Add namespace to npm. Compute defaults URL #275
- Misc:
- multiple minor bug fixes
- do not ignore .repo files #881
Credits: Many thanks to everyone that contributed to this release with code and bug reports
- @JonoYang
- @majurg
- @pombredanne
- @yash-nisar
- @ThorstenHarter
This is a minor pre-release of what will come up for 3.0 with no API change.
- Licenses:
- There are new and improved licenses and license detection rules #994 #991 #695 #983 #998 #969
- Copyrights:
- Copyright detection has been improved #930 #965
- Misc:
- Improve support for JavaScript map files: they may contain both debugging information and whole package source code.
- multiple minor bug fixes
Credits: Many thanks to everyone that contributed to this release with code and bug reports
- @haikoschol
- @jamesward
- @JonoYang
- @DennisClark
- @swinslow
This is a major pre-release of what will come up for 3.0
This has a lot of new changes including improved plugins, speed and detection that are not yet fully documented but it can be used for testing.
- API changes:
- Command line API
- --diag option renamed to --license-diag
- --format <format code> option has been replaced by multiple options one for each format such as --format-csv --format-json and multiple formats can be requested at once
- new experimental --cache-dir option and SCANCODE_CACHE environment variable and --temp-dir and SCANCODE_TMP environment variable to set the temp and cache directories.
- JSON data output format: no major changes
- programmatic API in scancode/api.py:
- get_urls(location, threshold=50): new threshold argument
- get_emails(location, threshold=50): new threshold argument
- get_file_infos renamed to get_file_info
- Resource moved to scancode.resource and significantly updated
- get_package_infos renamed to get_package_info
- Command line
- You can select multiple outputs at once (e.g. JSON and CSV, etc.) #789
- There is a new capability to reload a JSON scan to reprocess it with postcsan plugins and or converting a JSON scan to CSV or else.
- Licenses:
- There are several new and improved licenses and license detection rules #799 #774 #589
- Licenses data now contains the full name as well as the short name.
- License match have a notion of "coverage" which is the number of matched words compared to the number of words in the matched rule.
- The license cache is not checked anymore for consistency once created which improved startup times. (unless you are using a Git checkout and you are developping with a SCANCODE_DEV_MODE tag file present)
- License catagory names have been improved
- Copyrights:
- Copyright detection in binary files has been improved
- There are several improvements to the copyright detection quality fixing these tickets: #795 #677 #305 #795
- There is a new post scan plugin that can be used to ignore certain copyright in the results
- Summaries:
- Add new support for copyright summaries using smart holder deduplication #930
- Misc:
- Add options to limit the number of emails and urls that are collected from each file (with a default to 50) #384
- When configuring in dev mode, VS Code settings are created
- Archive detection has been improved
- There is a new cache and temporary file configuration with --cache-dir and --temp-dir CLI options. The --no-cache option has been removed
- Add new --examples to show usage examples help
- Move essential configuration to a scancode_config.py module
- Only read a few pages from PDF files by default
- Improve handling of files with weird characters in their names on all OSses
- Improve detection of archive vs. comrpessed files
- Make all copyright tests data driven using YAML files like for license tests
- Plugins
- Prescan plugins can now exclude files from the scans
- Plugins can now contribute arbitrary command line options #787 and #748
- there is a new plugin stage called output_filter to optionally filter a scan before output. One example is to keep "only findings" #787
- The core processing is centered now on a Codebase and Resource abstraction that represents the scanned filesystem in memory #717 #736 All plugins operate on this abstraction
- All scanners are also plugins #698 and now everything is a plugin including the scans
- The interface for output plugins is the same as other plugins #715
Credits: Many thanks to everyone that contributed to this release with code and bug reports (and this list is likely missing some)
- @SaravananOffl
- @jpopelka
- @yashdsaraf
- @haikoschol
- @jdaguil
- @ajeans
- @DennisClark
- @susg
- @pombredane
- @mjherzog
- @Sidsharik
- @nishakm
- @yasharmaster
- @techytushar
- @JonoYang
- @majurg
- @aviral1701
- @haikoschol
- @chinyeungli
- @vivonk
- @Chaitya62
- @inishchith
This is a minor release with several bug fixes, one new feature and one (minor) API change.
- Licenses data now contains a new reference_url attribute instead of a dejacode_url attribute. This defaults to the public DejaCode URL and can be configured with the new --license-url-template command line option.
- There is a new "--format jsonlines" output format option. In this format, each line in the output is a valid JSON document. The first line contains a "header" object with header-level data such as notice, version, etc. Each line after the first contains the scan results for a single file formatted with the same structure as a whole scan results JSON documents but without any header-level attributes. See also http://jsonlines.org/
- Several new and improved license detection rules have been added. The logic of detection has been refined to handle some rare corner cases. The underscore character "_" is treated as part of a license word and the handling of negative and false_positive license rules has been simplified.
- Several issues with dealing with codebase with non-ASCII, non-UTF-decodable file paths and other filesystem encodings-related bug have been fixed.
- Several copyright detection bugs have been fixed.
- PHP Composer and RPM packages are now detected with --package
- Several other package types are now detected with --package even though only a few attribute may be returned for now until full parser are added.
- Several parsing NPM packages bugs have been fixed.
- There are some minor performance improvements when scanning some large file for licenses.
This is a minor release with several new and improved features and bug fixes but no significant API changes.
- New plugin architecture by @yashdsaraf
- we can now have pre-scan, post-scan and output format plugins
- there is a new CSV output format and some example, experimental plugins
- the CLI UI has changed to better support these plugins
- New and improved licenses and license detection rules including support for EPL-2.0 and OpenJDK-related licensing and synchronization with the latest SPDX license list
- Multiple bug fixes such as:
- Ensure that authors are reported even if there is no copyright #669
- Fix Maven package POM parsing infinite loop #721
- Improve handling of weird non-unicode byte paths #688 and #706
- Improve PDF parsing to avoid some crash #723
Credits: Many thanks to everyone that contributed to this release with code and bug reports (and this list is likely missing some)
- @abuhman
- @chinyeungli
- @jimjag
- @JonoYang
- @jpopelka
- @majurg
- @mjherzog
- @pgier
- @pkajaba
- @pombredanne
- @scottctr
- @sschuberth
- @yahalom5776
- @yashdsaraf
This is a minor release with minor new and improved features and bug fixes.
- New and improved license detection, including refined match scoring for #534
- Bug fixed in License detection leading to a very long scan time for some rare JavaScript files. Reported by @jarnugirdhar
- New "base_name" attribute returned with file information. Reported by @chinyeungli
- Bug fixed in Maven POM package detection. Reported by @kalagp
This is a major release with several new and improved features and bug fixes.
Some of the key highlights include:
- Brand new, faster and accurate detection engine using multiple techniques eventually doing multiple exhaustive comparisons of a scanned file content against all the license and rule texts.
- Several new licenses and over 2500+ new and improved licenses detection rules have been added making the detection significantly better (and weirdly enough faster too as a side-effect of the new detection engine)
- the matched license text can be optionally returned with the --license-text option
- The detection accuracy has been benchmarked against other detection engine and ScanCode has shown to be more accurate and comprehensive than all the other engines reviewed.
- improved scoring of license matches
- new and improved detection of multiple package formats: NPM, Maven, NuGet, PHP Composer, Python Pypi and RPM. In most cases direct, declared dependencies are also reported.
- several additional package formats will be reported in the future version.
- note: the structure of Packages data is evolving and should not be considered API at this stage
- New SPDX tag/values and RDF outputs.
- new compact JSON format (the pretty printed format is still available with the the json-pp format). The JSON format has been changed significantly and is closer to a documented, standard format that we call the ABC data format.
- Minor refinements on the html and html-app format. Note that the html-app format will be deprecated and replaced by the new AboutCode Manager desktop app (electron-based) in future versions.
- Copyright: Improved copyright detection: several false positive are no longer returned and copyrights are more accurate
- Archive: support for shallow extraction and support for new archive types (such as Spring boot shell archives)
- Everything is generally faster, and license detection performance has been significantly improved.
- Scans can run on multiple processes in parallel with the new --processes option speeding up things even further. A scan of a full Debian pool of source packages was reported to scan in about 11 hours (on a rather beefy 144 cores, 256GB machine)
- Reduced memory usage with the use of caching
- This is the last release with Linux 32 bits architecture support
- The scan of a file can be interrupted after a timeout with a 120 seconds default
- ScanCode is now available as a library on the Pypi Python package index for use as a library. The documentation for the library usage will follow in future versions
- New --ignore option: You can optionally ignore certain file and paths during a scan
- New --diag option: display additional debug and diagnostic data
- The scanned file paths can now reported as relative, rooted or absolute with new command line options with a default to a rooted path.
Thank you to all contributors to this release and the 200+ stars and 60+ forks on GitHub!
Alexander Lisianoi Avi Aryan Benedikt Spranger Chin Yeung Dennis Clark Hugo Jacob Jakub Wilk Jericho @attritionorg Jillian Daguil Jiri Popelka John M. Horan Jonathan "Jono" Yang Li Ha Michael Herzog Michael Rupprecht Nusrat Sultana Paul Kunz Philippe Ombredanne Rakesh Balusa Ranvir Singh Richard Fontana Sebastian Schuberth Steven Esser Thomas Gleixner Tisoga @forrestchang Yash D. Saraf Yash Sharma
- The HTML app now displays a copyright holder summary graphic
- HTML app ui enhancements
- File extraction fixes
- New and improved license and detection rules
- Other minor improvements and minor bug fixes
- The HTML app now display a license summary graphic
- Copyright holders and Authors are now collected together with copyrights
- New email and url scan options: scan for URLs and emails
- New and improved license and detection rules
These scans are for now only available in the JSON output
- In the HTML app, the scanned path was hardcoded as scancode-toolkit2/scancode-toolkit/samples instead of displaying the path that was scanned.
- The release archives were missing some code (packagedcode)
- Improved --quiet option for command line operations
- New support for custom Jinja templates for the HTML output. The template also has access to the whole License object to output full license texts or other data. Thanks to @ened Sebastian Roth for this.
- Separated JSON data into a separate file for the html app. aboutcode-org#38
- Added support for scanning package and file information.
- Added file and package information to the html-app and html output. aboutcode-org#76
- improved CSS for html format output aboutcode-org#12
- New and improved licenses rules and licenses.
- Added support for nuget .nupkg as archives.
- Created new extractcode standalone command for aboutcode-org#52 Extracting archives is no longer part of the scancode command.
- Scancode can now be called from anywhere. aboutcode-org#55
- Various minor improvements for copyright detection.
- fixed --verbose option aboutcode-org#37
- Improved copyright and license detections (new rules, etc.)
- other minor improvements and minor bug fixes: temptative fix for aboutcode-org#4
- fixed for unsupported inclusion of Linux-32 bits pre-built binaries aboutcode-org#33
- scancode now ignores version control directories by default (.svn, .git, etc)
- Improved copyright and license detections (new rules, etc.)
- other minor improvements and minor bug fixes.
- experimental and unsupported inclusion of Linux-32 bits pre-built binaries
- Improved copyright detections.
- can scan a single file located in the installation directory
- other minor improvements and minor bug fixes.
- This is a major bug fix release for Windows. The -extract option was not working on Windows in previous 1.2.x pre-releases
- Support relative path when doing extract.
- Improper extract warning handling
- Fixed issue #26: Slow --extract
- Added support for progress during extraction (#27)
- Enforced exclusivity of --extract option
- Improved command line help.
- Added continuous testing with Travis and Appveyor and fixed tests
- support for scanning licenses and copyrights
- simple command line with html, html-app and JSON formats output