aboutcode-org / aboutcode-org/scancode-toolkit

Make it easier to get the SPDX license expression for individual matches

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

描述

Starting with output format version 3, there is `detected_license_expression_spdx`, but this seems to hold the combined expression for *all* matches in a file. However, in [ORT](https://github.com/oss-review-toolkit/ort) we're interested in the SPDX expressions for individual matches that come with start / end line numbers.

Matches do have `license_expression`, but these use ScanCode-specific keys instead of SPDX IDs for licenses. Before output format version 3, we were able to work around this by replacing `key` values with `spdx_license_key` values in expressions, but in output format version 3 `spdx_license_key` is not available anymore.

TL;DR if `matches` would have `license_expression_spdx` in addition to `license_expression` we'd be happy 😉

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

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

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