aboutcode-org / aboutcode-org/scancode-toolkit
Improve license detection for wrong SPDX license identifiers
未關閉
improve-license-detection
license scan
- 主要語言
- Python
- 星號
- 2.6k
- 分支
- 791
- 平均合併
- 1 天 12 小時
- 30 天內合併 PR
- 5
描述
Consider the following text:
```
SPDX-License-Identifier: (GPL-2.0+ OR BSD)
```
Here `BSD` is not a valid license expression and even adding a rule is insufficient because the `SPDX-License-Identifier` based detection was moved before the hash license detection.
We should either:
1. do the hash license detection first so we can catch these with rules, and then do the SPDX identifier based detection
2. if we get unknown-spdx we consider license detection with rules
3. Also optionally consider license detection with required phrase rules if nothing works (would lose license expression info for this potentially)?
貢獻指南
評估
這個 Issue 還沒有評估資料。