Skip to content

top-level MIT License detected at only 88% #1188

Description

@steven-esser

When running a scan on ExpressJS v 4.16.3 (from: https://registry.npmjs.org/express/-/express-4.16.3.tgz), the top level LICENSE file is certainly mit, yet has a score < 90.

You can find the text here: https://raw.githubusercontent.com/expressjs/express/master/LICENSE

The resulting license detection is:

{
  "key": "mit",
  "score": 88.83,
  "name": "MIT License",
  "short_name": "MIT License",
  "category": "Permissive",
  "is_exception": false,
  "owner": "MIT",
  "homepage_url": "http://opensource.org/licenses/mit-license.php",
  "text_url": "http://opensource.org/licenses/mit-license.php",
  "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:mit",
  "spdx_license_key": "MIT",
  "spdx_url": "https://spdx.org/licenses/MIT",
  "start_line": 1,
  "end_line": 24,
  "matched_rule": {
    "identifier": "mit_160.RULE",
    "license_expression": "mit",
    "licenses": [
      "mit"
    ],
    "is_license_text": true,
    "is_license_notice": false,
    "is_license_reference": false,
    "is_license_tag": false
  }
}

Because of the low score (< 90) this is classified as a has_top_level_declared_licenses": false for clarity scoring metric; Perhaps this is working as intended if the LICENSE file in question is far enough from the canonical MIT license text, but IMO it is pretty identical.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions