Skip to content

Potential unknown-license-reference noise in license detection #4363

Description

@chinyeungli
// Copyright (c) 2005  Tom Wu
// All Rights Reserved.
// See "LICENSE" for details.

// Basic JavaScript BN library - subset useful for RSA encryption.

/*
Licensing (LICENSE)
-------------------

This software is covered under the following copyright:
*/
/*
 * Copyright (c) 2003-2005  Tom Wu
 * All Rights Reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject to
 * the following conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
 * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
 *
 * IN NO EVENT SHALL TOM WU BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
 * INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER
 * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF
 * THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT
 * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 *
 * In addition, the following condition applies:
 *
 * All redistributions must retain an intact copy of this copyright notice
 * and disclaimer.
 */
/*

License detection returns unknown-license-reference AND mit-addition for the above text.
The unknown-license-reference is yielded from the "See "LICENSE" for details." and "Licensing (LICENSE)"

{
  "license_expression": "unknown-license-reference",
  "license_expression_spdx": "LicenseRef-scancode-unknown-license-reference",
  "matches": [
	{
	  "license_expression": "unknown-license-reference",
	  "license_expression_spdx": "LicenseRef-scancode-unknown-license-reference",
	  "from_file": "test.txt",
	  "start_line": 3,
	  "end_line": 3,
	  "matcher": "2-aho",
	  "score": 100.0,
	  "matched_length": 4,
	  "match_coverage": 100.0,
	  "rule_relevance": 100,
	  "rule_identifier": "unknown-license-reference_283.RULE",
	  "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/unknown-license-reference_283.RULE"
	}
  ],
  "identifier": "unknown_license_reference-f66b008c-85ad-5ecc-9554-81ad2bb8ff47"
},
{
  "license_expression": "unknown-license-reference",
  "license_expression_spdx": "LicenseRef-scancode-unknown-license-reference",
  "matches": [
	{
	  "license_expression": "unknown-license-reference",
	  "license_expression_spdx": "LicenseRef-scancode-unknown-license-reference",
	  "from_file": "test.txt",
	  "start_line": 8,
	  "end_line": 8,
	  "matcher": "2-aho",
	  "score": 100.0,
	  "matched_length": 2,
	  "match_coverage": 100.0,
	  "rule_relevance": 100,
	  "rule_identifier": "unknown-license-reference_414.RULE",
	  "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/unknown-license-reference_414.RULE"
	}
  ],
  "identifier": "unknown_license_reference-76a8d1ad-1634-0207-2409-0f49ad3c4a7f"
},

It'll be great if this noise can be removed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions