Recognise `#[cfg_attr(..., contracterror)]`
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
- 1-3 giờ
- Mức phù hợp với người mới
- 78/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
- backend
Hướng nghiên cứu
Start with the attribute scanner in src/parse.js and the cases in test/parse.test.js. Run npm test -- test/parse.test.js, then add coverage for conditional contracterror, unrelated attributes, and nested condition parentheses. Done means the tests confirm only cfg_attr containing contracterror is recognised.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Context
A crate can apply contracterror conditionally with cfg_attr. The current scanner ignores the attribute, so every variant in that enum is invisible to every rule.
Scope
src/parse.jstest/parse.test.js
Acceptance criteria
-
#[cfg_attr(feature = "errors", contracterror)]is recognised. -
#[cfg_attr(test, something_else)]is not mistaken for a contract error. - Nested parentheses in the condition are handled.
Verification
npm test -- test/parse.test.js
Complexity
Medium (3-4 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