Report a config enum that no source file defines

Đang mở
#16 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
77/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript, node.js
Lĩnh vực
tooling

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
JavaScript
Star
0
Fork
1
Merge trung bình
14 giờ 38 phút
Pull request đã merge (30 ngày)
9

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của codepacct/codepact-conventions

Tất cả issue của codepacct/codepact-conventions

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.