Report `#[contracterror]` on a non-enum item
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
- 68/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript
- Lĩnh vực
- tooling
Hướng nghiên cứu
Start with src/parse.js and src/analyze.js to trace how #[contracterror] attributes and item kinds are handled, then read the related cases in test/parse.test.js and test/analyze.test.js. Add an error finding for the attribute on a non-enum item, including its kind and line, and document the rule in docs/RULES.md. Run npm test -- test/analyze.test.js and confirm attributed enums remain unaffected.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Context
The attribute only makes sense on an enum. When it is placed on a struct or union, the parser skips it and the mistake is silent.
Scope
src/parse.jssrc/analyze.jstest/parse.test.jstest/analyze.test.js
Acceptance criteria
- A new
attribute-misplacedfinding names the item kind and the line. - The finding is an error.
- An enum with the attribute is unaffected.
- The rule is documented in
docs/RULES.md.
Verification
npm test -- test/analyze.test.js
Complexity
Medium (3 hours)
Part of Stellar Wave. Comment to claim this issue before starting.
- Ngôn ngữ chính
- JavaScript
- Star
- 0
- Fork
- 2
- Merge trung bình
- 1 ngày 1 giờ
- Pull request đã merge (30 ngày)
- 12
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của codepacct/codepact-core
-
analysis enhancement wave
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
codepacct/codepact-core#84 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue wave
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
codepacct/codepact-core#83 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation good first issue wave
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
codepacct/codepact-core#82 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation good first issue wave
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 77/100
codepacct/codepact-core#81 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
reporting tests wave
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
codepacct/codepact-core#80 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của codepacct/codepact-core
Issue tương tự
-
bug security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
IbrahimHafez1/loadwise#251 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 87/100
erkamyaman/unslop-anything#421 ·
Maintainer thường phản hồi trong vòng 1 ngày