Report a source enum that has no allocated block

Đang mở
#17 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
78/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
cli, testing

Hướng nghiên cứu

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.

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

Mô tả

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.

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.