Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

caseworkctl check: honour --deny-warnings and --production instead of ignoring them

Đang mở Phù hợp với người mới
#2,195 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
76/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ệ
rust
Lĩnh vực
cli

Hướng nghiên cứu

Đọc crates/registry-caseworkctl/src/project.rs tại check và định nghĩa CheckArgs trong crates/registry-caseworkctl/src/lib.rs; so sánh cách caseworkctl test xử lý --deny-warnings. Tái hiện vấn đề bằng các lệnh trong issue, sau đó kiểm tra báo cáo và mã thoát cho cả hai flag. Hoàn tất khi các flag hoạt động như được ghi trong tài liệu hoặc hành vi chưa được hỗ trợ được xóa khỏi CLI và tài liệu tham chiếu; tạo lại tài liệu CLI bằng cargo run --locked -p registry-cli-docs -- --write nếu các flag thay đổi.

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

Mô tả

1.0-blocker area:casework bug criticality:p1 triage:needs-implementation
What Happened

caseworkctl check accepts --deny-warnings and --production and ignores both. With an authored warning present, caseworkctl check PROJECT --deny-warnings prints the warning, reports ok: true, and exits 0. The JSON report is identical with and without either flag. caseworkctl test PROJECT --deny-warnings on the same project does refuse (exit 1), so the two commands disagree about the same flag.

Expected Behavior
  • --deny-warnings: a check with any warning reports ok: false and exits with the domain-refusal code, as test --deny-warnings does.
  • --production: either runs the production checks its help text promises ("Check the exact package closure required for production"), or the flag is removed from the clap definition and the CLI reference until it does something.
Reproduction
caseworkctl init demo --template standalone-decision
mkdir -p demo/holiday-sets/nested
caseworkctl check demo --deny-warnings --production; echo "exit $?"   # warning, exit 0
caseworkctl test demo --deny-warnings; echo "exit $?"                 # warning, exit 1
Where

crates/registry-caseworkctl/src/project.rs:check (parameters _production, _deny_warnings); flags declared in crates/registry-caseworkctl/src/lib.rs CheckArgs. A change to the flags needs cargo run --locked -p registry-cli-docs -- --write.

Environment

Registry Stack 0.42.0, main as of 2026-10-18.

Ngôn ngữ chính
Rust
Star
2
Fork
0
Merge trung bình
10 giờ 45 phút
Pull request đã merge (30 ngày)
259

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 registrystack/registry-stack

Tất cả issue của registrystack/registry-stack

Issue tương tự

Thêm issue về Rust

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.