aboutcode-org / aboutcode-org/scancode-toolkit

Improve the logic to determine the "conflicting license categories" setting in the License Clarity score

オープン
#3,167 コメント 1 件 リアクション 0 件 担当者 1 名 @JonoYang が担当を希望しています GitHub で見る
bug
主要言語
Python
スター
2.6k
フォーク
791
平均マージ
1日 12時間
マージ済み PR(30日)
5

説明

A recent scan of pkg:github/jekyll/jekyll@4.3.1?version_prefix=v from https://github.com/jekyll/jekyll/archive/refs/tags/v4.3.1.tar.gz detected the declared license of the project correctly to be mit. It also correctly interpreted the license expression of a lower level javascript file jekyll-4.3.1/docs/js/html5shiv.min.js to be `mit or gpl-2.0` based on the text `MIT/GPL2 Licensed` in that file. So far, so excellent.

But the License Clarity score is not 100 for this project (and it should be) because the "Conflicting license categories" was set to true, resulting in a -20 impact on the score. This is likely due to the fact that the overall license mit is permissive and the lower-level license gpl-2.0 is copyleft; however, the practical resolution is obvious that the choice of mit or gpl-2.0 for the javascript file will normally be mit, since the declared license for the entire project is mit.

Without getting into the very interesting questions about license choice policies and standards, I think that in this and similar cases, we of course should continue to report the choice (the disjunctive license expression) in the lower-level file, but that it should not have a negative impact on the license clarity score.

Scan results attached.
[jekyll-4.3.1.tar.gz_scan.json.zip](https://github.com/nexB/scancode-toolkit/files/10134712/jekyll-4.3.1.tar.gz_scan.json.zip)

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。