Skip to content

Release v2.2.1: Several bug fixes, minor new features and an API change

Choose a tag to compare

@steven-esser steven-esser released this 05 Oct 23:18
· 9926 commits to develop since this release

This is a minor release with several bug fixes, one new feature and one (minor) API change.

To install, download scancode-toolkit-2.2.1.zip or scancode-toolkit-2.2.1.tar.bz2 from the Downloads section below and follow installation instructions in the README at https://github.com/nexB/scancode-toolkit/blob/master/README.rst

This is also available as a Python library from Pypi with pip install scancode-toolkit

You can also download the source code for pre-built third-party binaries from these locations:

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.

New feature:

  • 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/

Other changes:

  • 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 attributes may be returned for now until full parsers
    are added.

  • Several parsing NPM packages bugs have been fixed.

  • There are some minor performance improvements when scanning some
    large file for licenses.

Thank you to all contributors to this release and the 250+ stars and 80+ forks on GitHub!