md-footer-template: "nothing was judged" should name the includes.byRule fix with its key

Abierto Apto para principiantes
#501 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
72/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript
Área
devtools

Línea de trabajo

El mensaje lo produce la ruta nothingJudged en src/laws/documentation/md-footer-template.ts. Lee allí primero y luego busca lawConfigKey en modular-laws-registry.ts para ver cómo se deriva la clave includes.byRule del título de la law. Está hecho cuando el mensaje en un proyecto cuyos includes no seleccionan ningún archivo .md contiene la indicación includes.byRule con la clave derivada, y un test cubre ese caso. Otras laws que informan 'includes select none of them' son follow-ups opcionales.

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

Descripción

enhancement

Version: after 8.0.0
Law: MD Footer Template (MANDATORY) — src/laws/documentation/md-footer-template.ts (nothingJudged)

What happens

When a project turns the opt-in law on while its includes.global names only source (for example src/**/*.ts), the law selects no Markdown file and reports:

8 Markdown file(s) exist, but the configured includes / ignores select none of them — nothing was judged

The cause is named, but not the fix. The run becomes partial, and the reader has to find out that the law takes its files through includes.byRule, under the key the registry sets for it (the slug of its title).

Suggested direction

Add the fix to the message, with the exact key:

… select none of them — nothing was judged. Give this law the Markdown files with includes.byRule: { "md-footer-template-mandatory": ["**/*.md"] }

Derive the key from the law's title the way the registry does (modular-laws-registry.ts, the lawConfigKey slug), not as a hard-coded string, so it stays right if the title changes. Red/green: the message on a project whose includes select no .md contains the includes.byRule hint with that key. The same pattern may apply to other laws that report "includes select none of them".

Lenguaje dominante
TypeScript
Estrellas
0
Forks
0
Merge medio
2 h 36 min
PR fusionados (30 d)
168

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 Rule-Of-Code/RoC

Todos los issues de Rule-Of-Code/RoC

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.