Reporting: ensure absent scores render as absent (null), never as 0

Đang mở
#160 1 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.

  • #330 của @vibgrate-team — đã đóng, không merge

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
node.js, typescript
Lĩnh vực
cli

Hướng nghiên cứu

Start by running vg scan on an unscanned or incomplete case and checking the current human-readable summary; then inspect the CLI reporting and machine-readable serialization entry points and their existing tests. Add regression coverage for the absent-score path in both the primary summary and one machine-readable format. Done means absent scores display as n/a, serialize as null or are omitted, and genuine zero scores remain zero without changing scoring math.

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

Mô tả

enhancement

Context

Product/engineering standards treat absent and zero as different: a missing DriftScore/RiskScore must not display as 0 (which reads as perfect). Adjacent scanners also struggle with sentinel values and counting bugs.

What to do

  1. Audit CLI human + machine-readable outputs for DriftScore / RiskScore / related metrics when a scan has not produced a score.
  2. Ensure absent values are null / “n/a” / omitted — never 0 unless the score was actually computed as zero.
  3. Add a regression test for the “unscanned / incomplete” path.

Acceptance

  • Absent vs zero distinguished in at least the primary vg scan summary and one machine-readable format
  • Regression test covers the absent path
  • No change to scoring math beyond presentation/serialization of absence

Mentoring notes

Confirm current behaviour before coding; cite the commands you exercised in the PR.

Ngôn ngữ chính
TypeScript
Star
4
Fork
3
Merge trung bình
1 ngày 22 giờ
Pull request đã merge (30 ngày)
76

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 vibgrate/cli

Tất cả issue của vibgrate/cli

Issue tương tự

Thêm issue về TypeScript

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.