Report a source enum that has no allocated block

Abierto
#17 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
3/5
Tiempo estimado
Medio día
Aptitud para principiantes
78/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
javascript, node.js
Área
cli, testing

Línea de trabajo

Start with src/scan.js and bin/validate-config.js, then review test/cli.test.js for existing validation errors and run the verification command from the issue. Add coverage for an enum with no allocated block, including the documented ignore comment and the link to --init; it is done when the error reports the source file, line and enum, ignored enums are exempt, and the CLI tests pass.

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

Descripción

enhancement wave

Context

The inverse of a stale allocation: a new contract adds an enum, but nobody updates the config. Every code it defines is unallocated, and CI still passes.

Scope

  • bin/validate-config.js
  • src/scan.js
  • test/cli.test.js

Acceptance criteria

  • A new missing-block error names the source file, line and enum.
  • Enums marked with a documented ignore comment are exempt.
  • The finding links to the --init command.

Verification

node bin/validate-config.js codepact.config.json --check contracts/

Complexity

Medium (4 hours)

Part of Stellar Wave. Comment to claim this issue before starting.

Lenguaje dominante
JavaScript
Estrellas
0
Forks
1
Merge medio
14 h 38 min
PR fusionados (30 d)
9

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 codepacct/codepact-conventions

Todos los issues de codepacct/codepact-conventions

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.