Skip to content

gpl-2.0 wrongly detected in a single mit notice line #1841

Description

@tdruez

Description

The gpl-2.0 license is matched in the following line:
"- License: [MIT License](http://opensource.org/licenses/MIT)"
See bellow for the full data output.

System configuration

  • Ubuntu 16.04
  • ScanCode version 3.1.2-92102c8c0

Output

{
  "authors": [
      {
          "end_line": 67,
          "start_line": 66,
          "value": "Alexandre Bodelot (https://github.com/abodelot)"
      }
  ],
  "base_name": "README",
  "consolidated_to": [
      "pkg_npm_jquery_json_viewer_1_4_0_1"
  ],
  "copyrights": [],
  "date": "2019-08-19",
  "dirs_count": 0,
  "emails": [],
  "extension": ".md",
  "file_type": "HTML document, ASCII text",
  "files_count": 0,
  "holders": [],
  "is_archive": false,
  "is_binary": false,
  "is_key_file": true,
  "is_legal": false,
  "is_license_text": false,
  "is_manifest": false,
  "is_media": false,
  "is_readme": true,
  "is_script": false,
  "is_source": false,
  "is_text": true,
  "is_top_level": true,
  "license_expressions": [
      "mit OR gpl-2.0"
  ],
  "licenses": [
      {
          "category": "Permissive",
          "end_line": 67,
          "homepage_url": "http://opensource.org/licenses/mit-license.php",
          "is_exception": false,
          "key": "mit",
          "matched_rule": {
              "identifier": "mit_or_gpl-2.0_3.RULE",
              "is_license_notice": true,
              "is_license_reference": false,
              "is_license_tag": false,
              "is_license_text": false,
              "license_expression": "mit OR gpl-2.0",
              "licenses": [
                  "mit",
                  "gpl-2.0"
              ],
              "match_coverage": 21.21,
              "matched_length": 7,
              "matcher": "3-seq",
              "rule_length": 33,
              "rule_relevance": 100
          },
          "matched_text": "- License: [MIT License](http://opensource.org/licenses/MIT)",
          "name": "MIT License",
          "owner": "MIT",
          "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:mit",
          "score": 21.21,
          "short_name": "MIT License",
          "spdx_license_key": "MIT",
          "spdx_url": "https://spdx.org/licenses/MIT",
          "start_line": 67,
          "text_url": "http://opensource.org/licenses/mit-license.php"
      },
      {
          "category": "Copyleft",
          "end_line": 67,
          "homepage_url": "http://www.gnu.org/licenses/gpl-2.0.html",
          "is_exception": false,
          "key": "gpl-2.0",
          "matched_rule": {
              "identifier": "mit_or_gpl-2.0_3.RULE",
              "is_license_notice": true,
              "is_license_reference": false,
              "is_license_tag": false,
              "is_license_text": false,
              "license_expression": "mit OR gpl-2.0",
              "licenses": [
                  "mit",
                  "gpl-2.0"
              ],
              "match_coverage": 21.21,
              "matched_length": 7,
              "matcher": "3-seq",
              "rule_length": 33,
              "rule_relevance": 100
          },
          "matched_text": "- License: [MIT License](http://opensource.org/licenses/MIT)",
          "name": "GNU General Public License 2.0",
          "owner": "Free Software Foundation (FSF)",
          "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:gpl-2.0",
          "score": 21.21,
          "short_name": "GPL 2.0",
          "spdx_license_key": "GPL-2.0-only",
          "spdx_url": "https://spdx.org/licenses/GPL-2.0-only",
          "start_line": 67,
          "text_url": "http://www.gnu.org/licenses/gpl-2.0.txt"
      }
  ],
  "md5": "a69884ee6f11667e573671e2e2e2f1c4",
  "mime_type": "text/html",
  "name": "README.md",
  "packages": [],
  "path": "jquery.json-viewer-1.4.0.tar.gz-extract/jquery.json-viewer-1.4.0/README.md",
  "programming_language": "Python",
  "scan_errors": [],
  "sha1": "104d88fa0f0ac0ab4f4cb3f3fa2f95046bfe4627",
  "size": 1975,
  "size_count": 0,
  "type": "file",
  "urls": [
      {
          "end_line": 3,
          "start_line": 3,
          "url": "https://img.shields.io/npm/v/jquery.json-viewer.svg"
      },
      {
          "end_line": 4,
          "start_line": 4,
          "url": "https://img.shields.io/npm/l/jquery.json-viewer.svg"
      },
      {
          "end_line": 5,
          "start_line": 5,
          "url": "https://img.shields.io/npm/dt/jquery.json-viewer.svg"
      },
      {
          "end_line": 15,
          "start_line": 15,
          "url": "http://rawgit.com/abodelot/jquery.json-viewer/master/demo.html"
      },
      {
          "end_line": 66,
          "start_line": 66,
          "url": "https://github.com/abodelot"
      },
      {
          "end_line": 67,
          "start_line": 67,
          "url": "http://opensource.org/licenses/MIT"
      }
  ]
},

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions