aboutcode-org / aboutcode-org/scancode-toolkit

Code wrongly detected as gpl-1.0

未關閉
#2,371 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug license scan
主要語言
Python
星號
2.6k
分支
791
平均合併
1 天 12 小時
30 天內合併 PR
5

描述

When trying to scan this file with latest scancode, It get the following license :
file from https://github.com/zyq8709/DexHunter/blob/master/dalvik/vm/compiler/codegen/x86/AnalysisO1.cpp
```
{
"key": "gpl-1.0",
"score": 100.0,
"name": "GNU General Public License 1.0",
"short_name": "GPL 1.0",
"category": "Copyleft",
"is_exception": false,
"owner": "Free Software Foundation (FSF)",
"homepage_url": "http://www.gnu.org/licenses/gpl-1.0.html",
"text_url": "http://www.gnu.org/licenses/gpl-1.0.txt",
"reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:gpl-1.0",
"spdx_license_key": "GPL-1.0-only",
"spdx_url": "https://spdx.org/licenses/GPL-1.0-only",
"start_line": 1606,
"end_line": 1606,
"matched_rule": {
"identifier": "gpl-1.0_15.RULE",
"license_expression": "gpl-1.0",
"licenses": [
"gpl-1.0"
],
"is_license_text": false,
"is_license_notice": false,
"is_license_reference": false,
"is_license_tag": true,
"matcher": "2-aho",
"rule_length": 2,
"matched_length": 2,
"match_coverage": 100.0,
"rule_relevance": 100.0
},
"matched_text": " currentBB->xferPoints[currentBB->num_xfer_points].vr_gpl = -1;"
},
```
### Description

Source code wrongly detected as gpl-1.0

### How To Reproduce

scancode -li --license-text --json-pp - AnalysisO1.cpp

### System configuration

* What OS are you running on? (Windows/MacOS/Linux)
Ubuntu18.04
* What version of scancode-toolkit was used to generate the scan file?
ScanCode 3.2.3
* What installation method was used to install/run scancode? (pip/source download/other)
pip
* Python version
Python 3.6.12 :: Anaconda, Inc.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。