Superfluous spaces in `match` of some GFDL-1.x-* standard header templates

Abierto
#233 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado

Línea de trabajo

Busca en las plantillas de encabezados estándar de licencia los doce nombres GFDL-1.x-* indicados y el patrón the Invariant Sections being. Compara cada expresión var/match con el texto de encabezado correspondiente y, a continuación, verifica que las doce plantillas afectadas utilicen un espaciado coincidente y que los demás detalles de GFDL permanezcan sin cambios.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

The following GFDL license standard header templates contain a var/match with rather superfluous spaces in the regex:

  • GFDL-1.1-invariants-only
  • GFDL-1.1-invariants-or-later
  • GFDL-1.1-only
  • GFDL-1.1-or-later
  • GFDL-1.2-invariants-only
  • GFDL-1.2-invariants-or-later
  • GFDL-1.2-only
  • GFDL-1.2-or-later
  • GFDL-1.3-invariants-only
  • GFDL-1.3-invariants-or-later
  • GFDL-1.3-only
  • GFDL-1.3-or-later
    The other GFDL license details (e.g. GFDL-1.3) are fine.

For example, the GFDL-1.3-only standard header template (line wraps for posterity by me) looks like this:

Copyright (c) 
<<var;name=\"copyright\";original=\"YEAR YOUR NAME\";match=\".+\">> 
 Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3; with
<<var;name=\"invariantSections\";original=\"the Invariant Sections being LIST THEIR TITLES\";match=\"the Invariant Sections       being .+|no Invariant Sections\">> 
 , with
<<var;name=\"frontCoverTexts\";original=\"the Front-Cover Texts being LIST\";match=\"the Front-Cover Texts being .+|no Front-Cover Texts\">> 
 , and with
<<var;name=\"backCoverTexts\";original=\"the Back-Cover Texts being LIST\";match=\"the Back-Cover Texts being .+|no Back-Cover Texts\">> 
 . A copy of the license is included in the section entitled \"GNU Free Documentation License\".

The 2nd var has the match with the pattern the Invariant Sections being .+|no Invariant Sections (notice the many spaces), which doesn't match the corresponding part of standard header template text ("the Invariant Sections being LIST THEIR TITLES"), which has only one space.

Lenguaje dominante
Java
Estrellas
23
Forks
28
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de spdx/LicenseListPublisher

Todos los issues de spdx/LicenseListPublisher

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.