Report a source enum that has no allocated block

Aperta
#17 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
78/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript, node.js
Ambito
cli, testing

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
JavaScript
Stelle
0
Fork
1
Merge medio
14h 38m
PR unite (30g)
9

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di codepacct/codepact-conventions

Tutte le issue di codepacct/codepact-conventions

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.