[QUESTION] Bug or feature - "licensed under the" triggers OSL-3.0 rule
Los mantenedores suelen responder en 3 días
@Anurag-S1ngh ya está trabajando en esto.
Desde el 31/10/2026.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Python
- Estrellas
- 2.7k
- Forks
- 831
- Merge medio
- 3 d 4 h
- PR fusionados (30 d)
- 7
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de aboutcode-org/scancode-toolkit
-
Four silent bugs: IsRequiredPhrase.license_expression returns None, find_in_path ignores later PATH changes, duplicate dict keys override license mappingsPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertobug
Dificultad 2/5 Medio día Aptitud para principiantes 65/100
aboutcode-org/scancode-toolkit#5405 ·
Los mantenedores suelen responder en 3 días
-
parse_maintainer_name_email returns empty name and wrong email when string has "@" but no angle bracketsPosiblemente ocupada @pujitha24 la tomó hace 1 día. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
aboutcode-org/scancode-toolkit#5402 ·
Los mantenedores suelen responder en 3 días
-
bug: Unreachable JSON extension and format validation in validate_input_pathPosiblemente ocupada @0Cymantek0 la tomó hace 22 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
aboutcode-org/scancode-toolkit#5351 · 1 comentario ·
Los mantenedores suelen responder en 3 días
-
CycloneDX output: metadata.properties[].value emits JSON array instead of stringPosiblemente ocupada @0Cymantek0 la tomó hace 22 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
aboutcode-org/scancode-toolkit#5349 · 1 comentario ·
Los mantenedores suelen responder en 3 días
-
Duplicate 'COPYLEFT' entries in legal file classification names in legal.py and classify.pyPosiblemente ocupada @Pradeepbeleri la tomó hace 49 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
aboutcode-org/scancode-toolkit#5319 · 2 comentarios ·
Los mantenedores suelen responder en 3 días
Todos los issues de aboutcode-org/scancode-toolkit
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
elviskahoro/sdk-python-attio#144 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
RenyiELBO raises TypeError when model has no sample sitesPosiblemente ocupada @alibb007 la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
[Bug]: Four evaluation scripts unpack init_memmachine_params's five return values into three namesAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
MemMachine/MemMachine#1911 ·
Los mantenedores suelen responder en 3 días