aboutcode-org / aboutcode-org/scancode-toolkit

Detection finds `google-patent-license-golang` in Polymer license text

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

描述

The license text found in plenty of NPM packages, e.g. [^1], is detected as `BSD-3-Clause AND LicenseRef-scancode-google-patent-license-golang`. This is wrong, because the actual license text is `google-patent-license` plus some polymer specific header, while `google-patent-license-golang = google-patent-license + some Golang specific header`.

ScanCode has the following variations of the google patent license,
whereas licenses IDs with a suffix after `google-patent-license` contain `google-patent-license` plus some header:
- https://scancode-licensedb.aboutcode.org/google-patent-license-fuchsia.html
- https://scancode-licensedb.aboutcode.org/google-patent-license-golang.html
- https://scancode-licensedb.aboutcode.org/google-patent-license-webm.html
- https://scancode-licensedb.aboutcode.org/google-patent-license-webrtc.html
- https://scancode-licensedb.aboutcode.org/google-patent-license.html

Proposed solution:
- preferred: Add a new license ID: `google-patent-license-polymer`
- alternative: Change the detection to detect `BSD-3-Clause AND LicenseRef-scancode-google-patent-license`.

[^1]: https://github.com/PolymerElements/iron-a11y-keys-behavior/blob/ebfffaf7bd630ba43b7cff143d5c25d5e55e14bd/iron-a11y-keys-behavior.js#L2-L9

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

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

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