Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions scripts/check-licence-consistency.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
has_pmpl_text=$(count_in_i 'PMPL-1\.0-or-later|Palimpsest License \(PMPL')
has_apache=$(count_in 'Apache License.*Version 2\.0')
has_mit=$(count_in 'MIT License')
has_agpl=$(count_in 'GNU AFFERO GENERAL PUBLIC LICENSE')
has_gpl3=$(count_in 'GNU GENERAL PUBLIC LICENSE.*Version 3')
has_bsd3=$(count_in 'BSD.*3-Clause')
has_proprietary=$(count_in_i 'All Rights Reserved')
Expand All @@ -89,6 +90,13 @@
body_class="Apache-2.0"
elif [ "$has_mit" -gt 0 ]; then
body_class="MIT"
elif [ "$has_agpl" -gt 0 ]; then

Check failure on line 93 in scripts/check-licence-consistency.sh

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use '[[' instead of '[' for conditional tests. The '[[' construct is safer and more feature-rich.

See more on https://sonarcloud.io/project/issues?id=hyperpolymath_standards&issues=AZ9yRcAmsYvk6lzAvahL&open=AZ9yRcAmsYvk6lzAvahL&pullRequest=501
# AGPL before plain GPL-3.0: the AGPL body carries "GNU AFFERO GENERAL PUBLIC
# LICENSE". These are deliberate co-developed-project exceptions to the estate
# MPL-2.0 policy (e.g. the games airborne-submarine-squadron, the-nash-equilibrium)
# and must be recognised so their full-text LICENSE files (which GitHub then
# detects as AGPL, unlike an SPDX-stub) pass this check.
body_class="AGPL-3.0"
elif [ "$has_gpl3" -gt 0 ]; then
body_class="GPL-3.0"
elif [ "$has_bsd3" -gt 0 ]; then
Expand Down
Loading