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

オープン
#160 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

  • #330 @vibgrate-team による — マージされずにクローズ

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
node.js, typescript
領域
cli

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
4
フォーク
3
平均マージ
1日 22時間
マージ済み PR(30日)
76

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

vibgrate/cli のほかの issue

vibgrate/cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。