Skip to content

Should license detection also return SPDX license expressions? #1217

@pombredanne

Description

@pombredanne

Today we have this:

  • when the output is SPDX, we return proper SPDX license expressions using SPDX license ids
  • otherwise (JSON, etc) we return
    • license expressions using ScanCode own license keys
    • a list licenses and for these that are known at SPDX the corresponding SPDX license key

In this later case I wonder if it could be useful to also return license expressions using SPDX license ids.
This would be eventually a new option and would be returned under its own file-level attribute.
This could also possibly apply to a companion to the license_expression returned with packages for a package manifest. Now, of the 1301 licenses that scancode knows, only 375 are referenced at SPDX, therefore there will be quite a few "LicenseRef" in this case. See #532 for this issue and #532 (comment) in particular.

@sschuberth @mjherzog @DennisClark @armijnhemel Any feedback?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions