Skip to content

Improve scancode license_db #4411

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
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

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/licensedcode/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
.anchor {color: #6362dc; display: none; margin-left: .2rem; padding: 0 .2rem;}
h4:focus .anchor, h4:hover .anchor {display: inline; text-decoration: none;}
.help_text, .help_text:hover, .help_text:visited {color: #3b4351!important; border-bottom: dotted 0.0625rem #cccccc; text-decoration: inherit;}
.table-head{position: sticky; top: 0; overflow: hidden; background-color: #FFFFFF;}
</style>
<link rel="stylesheet" href="static/spectre-0.5.9.min.css">
<script src="static/jquery-3.5.1.slim.min.js"></script>
Expand Down
8 changes: 5 additions & 3 deletions src/licensedcode/templates/license_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<div class="container">
<div class="loading loading-lg" style="margin-top:50px;"></div>
<table class="display" style="visibility: hidden;">
<thead>
<thead class="table-head">
<tr>
<th>Key</th>
<th>Short name</th>
Expand Down Expand Up @@ -99,8 +99,10 @@

// https://datatables.net/reference/api/search()
let searchbox = $("#searchbox");
searchbox.on("keyup", function() {
table.search(this.value).draw();
searchbox.on("keyup", function () {
table.columns([0, 1])
.search(this.value)
.draw();

// Inject the search value in the browser href
if (history.replaceState) {
Expand Down
290 changes: 145 additions & 145 deletions tests/licensedcode/data/license_db/index.json-expected.json
Original file line number Diff line number Diff line change
@@ -1,146 +1,146 @@
[
{
"license_key": "bash-exception-gpl",
"category": "Copyleft",
"spdx_license_key": "LicenseRef-scancode-bash-exception-gpl-2.0",
"other_spdx_license_keys": [],
"is_exception": true,
"is_deprecated": false,
"json": "bash-exception-gpl.json",
"yaml": "bash-exception-gpl.yml",
"html": "bash-exception-gpl.html",
"license": "bash-exception-gpl.LICENSE"
},
{
"license_key": "binary-linux-firmware",
"category": "Proprietary Free",
"spdx_license_key": "LicenseRef-scancode-binary-linux-firmware",
"other_spdx_license_keys": [],
"is_exception": false,
"is_deprecated": false,
"json": "binary-linux-firmware.json",
"yaml": "binary-linux-firmware.yml",
"html": "binary-linux-firmware.html",
"license": "binary-linux-firmware.LICENSE"
},
{
"license_key": "bison-exception-2.0",
"category": "Copyleft Limited",
"spdx_license_key": "LicenseRef-scancode-bison-exception-2.0",
"other_spdx_license_keys": [],
"is_exception": true,
"is_deprecated": false,
"json": "bison-exception-2.0.json",
"yaml": "bison-exception-2.0.yml",
"html": "bison-exception-2.0.html",
"license": "bison-exception-2.0.LICENSE"
},
{
"license_key": "bison-exception-2.2",
"category": "Copyleft Limited",
"spdx_license_key": "Bison-exception-2.2",
"other_spdx_license_keys": [],
"is_exception": true,
"is_deprecated": false,
"json": "bison-exception-2.2.json",
"yaml": "bison-exception-2.2.yml",
"html": "bison-exception-2.2.html",
"license": "bison-exception-2.2.LICENSE"
},
{
"license_key": "bittorrent-1.0",
"category": "Copyleft Limited",
"spdx_license_key": "BitTorrent-1.0",
"other_spdx_license_keys": [],
"is_exception": false,
"is_deprecated": false,
"json": "bittorrent-1.0.json",
"yaml": "bittorrent-1.0.yml",
"html": "bittorrent-1.0.html",
"license": "bittorrent-1.0.LICENSE"
},
{
"license_key": "bittorrent-1.1",
"category": "Copyleft Limited",
"spdx_license_key": "BitTorrent-1.1",
"other_spdx_license_keys": [],
"is_exception": false,
"is_deprecated": false,
"json": "bittorrent-1.1.json",
"yaml": "bittorrent-1.1.yml",
"html": "bittorrent-1.1.html",
"license": "bittorrent-1.1.LICENSE"
},
{
"license_key": "bittorrent-1.2",
"category": "Copyleft Limited",
"spdx_license_key": "LicenseRef-scancode-bittorrent-1.2",
"other_spdx_license_keys": [],
"is_exception": false,
"is_deprecated": false,
"json": "bittorrent-1.2.json",
"yaml": "bittorrent-1.2.yml",
"html": "bittorrent-1.2.html",
"license": "bittorrent-1.2.LICENSE"
},
{
"license_key": "bittorrent-eula",
"category": "Proprietary Free",
"spdx_license_key": "LicenseRef-scancode-bittorrent-eula",
"other_spdx_license_keys": [],
"is_exception": false,
"is_deprecated": false,
"json": "bittorrent-eula.json",
"yaml": "bittorrent-eula.yml",
"html": "bittorrent-eula.html",
"license": "bittorrent-eula.LICENSE"
},
{
"license_key": "boost-1.0",
"category": "Permissive",
"spdx_license_key": "BSL-1.0",
"other_spdx_license_keys": [],
"is_exception": false,
"is_deprecated": false,
"json": "boost-1.0.json",
"yaml": "boost-1.0.yml",
"html": "boost-1.0.html",
"license": "boost-1.0.LICENSE"
},
{
"license_key": "boost-original",
"category": "Permissive",
"spdx_license_key": "LicenseRef-scancode-boost-original",
"other_spdx_license_keys": [],
"is_exception": false,
"is_deprecated": false,
"json": "boost-original.json",
"yaml": "boost-original.yml",
"html": "boost-original.html",
"license": "boost-original.LICENSE"
},
{
"license_key": "bootloader-exception",
"category": "Copyleft Limited",
"spdx_license_key": "Bootloader-exception",
"other_spdx_license_keys": [],
"is_exception": true,
"is_deprecated": false,
"json": "bootloader-exception.json",
"yaml": "bootloader-exception.yml",
"html": "bootloader-exception.html",
"license": "bootloader-exception.LICENSE"
},
{
"license_key": "bsla",
"category": "Permissive",
"spdx_license_key": "LicenseRef-scancode-bsla",
"other_spdx_license_keys": [],
"is_exception": false,
"is_deprecated": false,
"json": "bsla.json",
"yaml": "bsla.yml",
"html": "bsla.html",
"license": "bsla.LICENSE"
}
[
{
"license_key": "bash-exception-gpl",
"category": "Copyleft",
"spdx_license_key": "LicenseRef-scancode-bash-exception-gpl-2.0",
"other_spdx_license_keys": [],
"is_exception": true,
"is_deprecated": false,
"json": "bash-exception-gpl.json",
"yaml": "bash-exception-gpl.yml",
"html": "bash-exception-gpl.html",
"license": "bash-exception-gpl.LICENSE"
},
{
"license_key": "binary-linux-firmware",
"category": "Proprietary Free",
"spdx_license_key": "LicenseRef-scancode-binary-linux-firmware",
"other_spdx_license_keys": [],
"is_exception": false,
"is_deprecated": false,
"json": "binary-linux-firmware.json",
"yaml": "binary-linux-firmware.yml",
"html": "binary-linux-firmware.html",
"license": "binary-linux-firmware.LICENSE"
},
{
"license_key": "bison-exception-2.0",
"category": "Copyleft Limited",
"spdx_license_key": "LicenseRef-scancode-bison-exception-2.0",
"other_spdx_license_keys": [],
"is_exception": true,
"is_deprecated": false,
"json": "bison-exception-2.0.json",
"yaml": "bison-exception-2.0.yml",
"html": "bison-exception-2.0.html",
"license": "bison-exception-2.0.LICENSE"
},
{
"license_key": "bison-exception-2.2",
"category": "Copyleft Limited",
"spdx_license_key": "Bison-exception-2.2",
"other_spdx_license_keys": [],
"is_exception": true,
"is_deprecated": false,
"json": "bison-exception-2.2.json",
"yaml": "bison-exception-2.2.yml",
"html": "bison-exception-2.2.html",
"license": "bison-exception-2.2.LICENSE"
},
{
"license_key": "bittorrent-1.0",
"category": "Copyleft Limited",
"spdx_license_key": "BitTorrent-1.0",
"other_spdx_license_keys": [],
"is_exception": false,
"is_deprecated": false,
"json": "bittorrent-1.0.json",
"yaml": "bittorrent-1.0.yml",
"html": "bittorrent-1.0.html",
"license": "bittorrent-1.0.LICENSE"
},
{
"license_key": "bittorrent-1.1",
"category": "Copyleft Limited",
"spdx_license_key": "BitTorrent-1.1",
"other_spdx_license_keys": [],
"is_exception": false,
"is_deprecated": false,
"json": "bittorrent-1.1.json",
"yaml": "bittorrent-1.1.yml",
"html": "bittorrent-1.1.html",
"license": "bittorrent-1.1.LICENSE"
},
{
"license_key": "bittorrent-1.2",
"category": "Copyleft Limited",
"spdx_license_key": "LicenseRef-scancode-bittorrent-1.2",
"other_spdx_license_keys": [],
"is_exception": false,
"is_deprecated": false,
"json": "bittorrent-1.2.json",
"yaml": "bittorrent-1.2.yml",
"html": "bittorrent-1.2.html",
"license": "bittorrent-1.2.LICENSE"
},
{
"license_key": "bittorrent-eula",
"category": "Proprietary Free",
"spdx_license_key": "LicenseRef-scancode-bittorrent-eula",
"other_spdx_license_keys": [],
"is_exception": false,
"is_deprecated": false,
"json": "bittorrent-eula.json",
"yaml": "bittorrent-eula.yml",
"html": "bittorrent-eula.html",
"license": "bittorrent-eula.LICENSE"
},
{
"license_key": "boost-1.0",
"category": "Permissive",
"spdx_license_key": "BSL-1.0",
"other_spdx_license_keys": [],
"is_exception": false,
"is_deprecated": false,
"json": "boost-1.0.json",
"yaml": "boost-1.0.yml",
"html": "boost-1.0.html",
"license": "boost-1.0.LICENSE"
},
{
"license_key": "boost-original",
"category": "Permissive",
"spdx_license_key": "LicenseRef-scancode-boost-original",
"other_spdx_license_keys": [],
"is_exception": false,
"is_deprecated": false,
"json": "boost-original.json",
"yaml": "boost-original.yml",
"html": "boost-original.html",
"license": "boost-original.LICENSE"
},
{
"license_key": "bootloader-exception",
"category": "Copyleft Limited",
"spdx_license_key": "Bootloader-exception",
"other_spdx_license_keys": [],
"is_exception": true,
"is_deprecated": false,
"json": "bootloader-exception.json",
"yaml": "bootloader-exception.yml",
"html": "bootloader-exception.html",
"license": "bootloader-exception.LICENSE"
},
{
"license_key": "bsla",
"category": "Permissive",
"spdx_license_key": "LicenseRef-scancode-bsla",
"other_spdx_license_keys": [],
"is_exception": false,
"is_deprecated": false,
"json": "bsla.json",
"yaml": "bsla.yml",
"html": "bsla.html",
"license": "bsla.LICENSE"
}
]
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
---
key: bash-exception-gpl
short_name: Bash exception to GPL
name: Bash exception to GPL
category: Copyleft
owner: Free Software Foundation (FSF)
notes: this used with GPL 1.0 and 2.0. It was removed from the V3 text https://git.savannah.gnu.org/cgit/bash.git/commit/COPYING?id=3185942a5234e26ab13fa02f9c51d340cec514f8
is_exception: yes
spdx_license_key: LicenseRef-scancode-bash-exception-gpl-2.0
text_urls:
- https://git.savannah.gnu.org/cgit/bash.git/plain/COPYING?h=bash-3.0-rc1&id=dd9e6dfa23d0dae4888f11fb8c6a27bc36d1b283
---

The Free Software Foundation has exempted Bash from the requirement of
Paragraph 2c of the General Public License. This is to say, there is
no requirement for Bash to print a notice when it is started
interactively in the usual way. We made this exception because users
and standards expect shells not to print such messages. This
exception applies to any program that serves as a shell and that is
---
key: bash-exception-gpl
short_name: Bash exception to GPL
name: Bash exception to GPL
category: Copyleft
owner: Free Software Foundation (FSF)
notes: this used with GPL 1.0 and 2.0. It was removed from the V3 text https://git.savannah.gnu.org/cgit/bash.git/commit/COPYING?id=3185942a5234e26ab13fa02f9c51d340cec514f8
is_exception: yes
spdx_license_key: LicenseRef-scancode-bash-exception-gpl-2.0
text_urls:
- https://git.savannah.gnu.org/cgit/bash.git/plain/COPYING?h=bash-3.0-rc1&id=dd9e6dfa23d0dae4888f11fb8c6a27bc36d1b283
---
The Free Software Foundation has exempted Bash from the requirement of
Paragraph 2c of the General Public License. This is to say, there is
no requirement for Bash to print a notice when it is started
interactively in the usual way. We made this exception because users
and standards expect shells not to print such messages. This
exception applies to any program that serves as a shell and that is
based primarily on Bash as opposed to other GNU software.
Loading
Loading