Report a config enum that no source file defines

Aperta
#16 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
77/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript, node.js
Ambito
tooling

Direzione di ricerca

Read bin/validate-config.js, src/scan.js, and the existing CLI tests in test/cli.test.js. Start by tracing how --check supplies a source directory and how source enums are scanned. Add coverage for the unknown-enum error, its nearest match, and the no-path case; done when the provided verification command succeeds and the tests cover both behaviors.

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

Descrizione

enhancement wave

Context

A stale allocation is easy to leave behind after a rename. The config still reserves a block, and the validator says nothing.

Scope

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

Acceptance criteria

  • A new unknown-enum error names the config key and the nearest matching source enum, if any.
  • The check only runs when a source directory is supplied.
  • A config with no --check path is unaffected.

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.