[QUESTION] Bug or feature - "licensed under the" triggers OSL-3.0 rule
Maintainer thường phản hồi trong vòng 3 ngày
@Anurag-S1ngh đang làm issue này rồi.
Từ ngày 31/10/2026.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
Start by reading the referenced OSL rule files, osl-3.0_54.RULE and osl-3.0_26.RULE, and investigate how ScanCode applies their matching rules to the examples in the issue. Check existing tests for license-rule matching and add or update coverage for generic license wording versus genuine OSL references. Done means the Katex example no longer produces a false OSL-3.0 detection while valid OSL matches remain detectable.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I ran into this one using ClearlyDefined. I chose to open the issue here as I think it is closer to Scandcode than to CD.
The project Katex's README says:
KaTeX is licensed under the [MIT License](https://opensource.org/licenses/MIT).
The three words "licensed under the" trigger the osl.3.0_54.RULE, according to CD's API response
"license_detections": [
{
"license_expression": "osl-3.0 AND mit",
"license_expression_spdx": "OSL-3.0 AND MIT",
"matches": [
{
"license_expression": "osl-3.0",
"license_expression_spdx": "OSL-3.0",
"from_file": "cd--1-2FprPcto73nv/package/dist/README.md",
"start_line": 123,
"end_line": 125,
"matcher": "3-seq",
"score": 52.94,
"matched_length": 9,
"match_coverage": 52.94,
"rule_relevance": 100,
"rule_identifier": "osl-3.0_54.RULE",
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/osl-3.0_54.RULE",
"matched_text": "## License\n\nKaTeX is licensed under the [MIT License](https://opensource.org/licenses/MIT).",
"matched_text_diagnostics": "License\n\n[KaTeX] [is] licensed under the [[MIT] License](https://opensource.org/licenses/"
}
Question: Is this intended? I mean, "licensed under the" is a very generic statement. Would every component which states that it is "licensed under the <enter_name_of_license_here>" trigger this OSL-3.0 rule?
Similar example:
"the full text of the license" triggers osl-3.0_26.RULE, for the aws-sdk-go-v2
https://github.com/aws/aws-sdk-go-v2/blob/main/service/lambda/api_op_PublishLayerVersion.go#L69
// The layer's software license. It can be any of the following:
//
// - An [SPDX license identifier]. For example, MIT .
//
// - The URL of a license hosted on the internet. For example,
// https://opensource.org/licenses/MIT .
//
// - The full text of the license.
//
// [SPDX license identifier]: https://spdx.org/licenses/
LicenseInfo *string
vs.
# This software is licensed under the Open Software License version
# 3.0. The full text of this license can be found in https://opensource.org/licenses/OSL-3.0
# or in the file LICENSE which is distributed along with the software.
- Ngôn ngữ chính
- Python
- Star
- 2.7k
- Fork
- 831
- Merge trung bình
- 2 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 8
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của aboutcode-org/scancode-toolkit
-
scancode aborts when encountering a broken RPM archiveCó thể đã có người làm @adeba4343-web đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
aboutcode-org/scancode-toolkit#5407 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Four silent bugs: IsRequiredPhrase.license_expression returns None, find_in_path ignores later PATH changes, duplicate dict keys override license mappingsCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởbug
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 65/100
aboutcode-org/scancode-toolkit#5405 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
parse_maintainer_name_email returns empty name and wrong email when string has "@" but no angle bracketsCó thể đã có người làm @pujitha24 đã nhận 2 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
aboutcode-org/scancode-toolkit#5402 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
bug: Unreachable JSON extension and format validation in validate_input_pathCó thể đã có người làm @0Cymantek0 đã nhận 22 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
aboutcode-org/scancode-toolkit#5351 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
CycloneDX output: metadata.properties[].value emits JSON array instead of stringCó thể đã có người làm @0Cymantek0 đã nhận 22 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
aboutcode-org/scancode-toolkit#5349 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của aboutcode-org/scancode-toolkit
Issue tương tự
-
Import errors are swallowed: PerthImplicitWatermarker silently becomes NoneCó thể đã có người làm @JonRC đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
resemble-ai/Perth#23 ·
-
correction metadata
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 65/100
acl-org/acl-anthology#10753 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
earthtojake/text-to-cad#758 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 70/100
DataTalksClub/faq#545 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày