CryptoSwift license incorrectly identified as Zlib
@AyanSinhaMahapatra is already working on this.
Since Dec 18, 2024.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Start by reproducing the reported scans against CryptoSwift's CONTRIBUTING.md and LICENSE with scancode-toolkit 32.3.0, then inspect how the Zlib match is selected and compare it with the differing license wording. Done means both files receive the correct license identification and the required acknowledgment wording is represented by an appropriate identifier.
Written by the indexing model from the issue text.
Description
CryptoSwift license incorrectly identified as Zlib
The CONTRIBUTING and LICENSE files of CryptoSwift are incorrectly
identified as Zlib license.
CryptoSwift: https://github.com/krzyzanowskim/CryptoSwift
- LICENSE file: https://github.com/krzyzanowskim/CryptoSwift/blob/main/LICENSE
- CONTRIBUTING file: https://github.com/krzyzanowskim/CryptoSwift/blob/main/CONTRIBUTING.md
Zlib: https://www.zlib.net/
Major difference
Zlib text
If you use this software in a product, an acknowledgment in the
product documentation would be appreciated but is not required.
CryptoSwift text
If you use this software in a product, an acknowledgment in the product documentation is required.
The difference
Zlib says: appreciated but is not required
CryptoSwift: is required
This is quite a difference for users when complying with the license terms.
Additional notes
-
The CryptoSwift license needs an identifier
-
Unfortunately the LICENSE and CONTRIBUTING files have slightly different texts.
Reproducing
CONTRIBUTING file
Scanning the CONTRIBUTING file
mkdir contributing-file
cd contributing-file
curl -LJ https://raw.githubusercontent.com/krzyzanowskim/CryptoSwift/refs/heads/main/CONTRIBUTING.md | grep "^//" > CONTRIBUTING.md
cd ..
scancode -clipe \
--license-text --license-text-diagnostics \
--classify --license-clarity-score --summary \
-n $(cat /proc/cpuinfo | grep processor | wc -l) \
--json-pp contributing-file.json contributing-file
Extracting the detected license
$ cat contributing-file.json | jq .files[].detected_license_expression_spdx
null
"Zlib"
LICENSE file
Scanning the LICENSE file
mkdir license-file
cd license-file
curl -LJO https://raw.githubusercontent.com/krzyzanowskim/CryptoSwift/refs/heads/main/LICENSE
cd ..
scancode -clipe \
--license-text --license-text-diagnostics \
--classify --license-clarity-score --summary \
-n $(cat /proc/cpuinfo | grep processor | wc -l) \
--json-pp license-file.json license-file
Extracting the detected license
$ cat license-file.json | jq .files[].detected_license_expression_spdx
null
"Zlib"
Versions etc
- scancode-toolkit 32.3.0
- Ubuntu 24.04.1 LTS
- Python 3.12.3
- Dominant language
- Makefile
- Stars
- 70
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from aboutcode-org/scancode-licensedb
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
-
How to cite?Open
Difficulty 2/5 Under an hour Newbie friendliness 22/100
aboutcode-org/scancode-licensedb#84 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Wrong format for exceptions?May be free again @AyanSinhaMahapatra claimed this 435 days ago, and no pull request is open. Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
aboutcode-org/scancode-licensedb#71 · 2 comments · 2 assignees ·
-
Table Header Becomes Invisible When Scrolling DownPossibly taken @alok1304 claimed this 658 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 35/100
All issues in aboutcode-org/scancode-licensedb
Similar issues
-
checkpoint/verify/rebuild_indexes on a thread holding a WriteTransaction deadlock instead of INT-001Openbug known-issue
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
project-minigraf/minigraf#734 ·
Maintainers usually reply within 1 day
-
Run backup and the daily backup fail: the backup script passes an option MariaDB's dump tool rejectsOpenpriority: high
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
keyxmakerx/Chronicle#1696 ·
Maintainers usually reply within 1 day
-
[YSQL] Local-node initdb reads postgres.bki, but YB clusters bootstrap only from yb_postgres.bkiOpenarea/ysql kind/enhancement priority/low status/awaiting-triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
yugabyte/yugabyte-db#35763 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
golang-migrate/migrate#1457 ·
-
Read a vector index's quantization back on Neo4j 2026.10, which reports vector.quantization.typeOpen
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
liberation-data/drivine#231 ·
Maintainers usually reply within 1 day