aboutcode-org / aboutcode-org/scancode-toolkit

Apache-2.0 SPDX identifier flagged as "unknown-spdx OR unknown-spdx OR unknown-spdx"

未关闭
#4,006 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
Python
星标
2.6k
派生
791
平均合并
1 天 12 小时
30 天内合并 PR
5

描述

### Description

Apache-2.0 short SPDX identifier in open source file being identified as `unknown-spdx OR unknown-spdx OR unknown-spdx`

### How To Reproduce

Scan file in scancode.io (v34.9.0)
https://github.com/zephyrproject-rtos/zephyr/blob/v3.7.0/samples/bluetooth/handsfree_ag/CMakeLists.txt

**Scancode.io output**
```
- matches:
- score: '100.0'
matcher: 1-spdx-id
end_line: 1
rule_url:
from_file:
start_line: 1
matched_text: '#SPDX - License - Identifier : Apache - 2.0'
match_coverage: '100.0'
matched_length: 6
rule_relevance: 100
rule_identifier: spdx-license-identifier-unknown_spdx_or_unknown_spdx_or_unknown_spdx-edef7e26fd3b1736b8497407c50f2b33f5520db1
license_expression: unknown-spdx OR unknown-spdx OR unknown-spdx
spdx_license_expression: LicenseRef-scancode-unknown-spdx OR LicenseRef-scancode-unknown-spdx
OR LicenseRef-scancode-unknown-spdx
identifier: unknown_spdx_or_unknown_spdx_or_unknown_spdx-3704a577-7b9b-395b-66e4-e141e179cec0
license_expression: unknown-spdx OR unknown-spdx OR unknown-spdx
license_expression_spdx: LicenseRef-scancode-unknown-spdx OR LicenseRef-scancode-unknown-spdx
OR LicenseRef-scancode-unknown-spdx
```

### System configuration

* What OS are you running on? Linux
* What version of scancode-toolkit was used to generate the scan file? v32.3.0
* What installation method was used to install/run scancode? Scancode.io v34.9.0 Docker image

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。