spec-runner 1.0.18 → 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -318,10 +318,11 @@ run_health_check() {
|
|
|
318
318
|
for f in "$UC_ROOT"/*/UC-*.md; do
|
|
319
319
|
[[ -f "$f" ]] || continue
|
|
320
320
|
base=$(basename "$f" .md)
|
|
321
|
-
|
|
321
|
+
# 表ヘッダ(例: `| 前提 | 操作 | 期待 |`)の `|` は `\|` としてリテラル扱いする
|
|
322
|
+
if ! grep -qE '受入条件|成功基準|前提:|操作:|期待:|\|[[:space:]]*前提[[:space:]]*\|[[:space:]]*操作[[:space:]]*\|[[:space:]]*期待[[:space:]]*\|' "$f" 2>/dev/null; then
|
|
322
323
|
drifts+=("UC ${base}: 受入条件または成功基準がありません")
|
|
323
324
|
fi
|
|
324
|
-
count=$(grep -c '
|
|
325
|
+
count=$(grep -c '\[要確認:' "$f" 2>/dev/null || echo 0)
|
|
325
326
|
count=$(echo "$count" | head -1 | tr -cd '0-9'); count=${count:-0}
|
|
326
327
|
[[ "$count" -gt 3 ]] && drifts+=("UC ${base}: [要確認: が ${count} 個(3個以下にすること)")
|
|
327
328
|
# `## 実装方針` / `## タスク(一覧)` は実装計画以降で埋まる想定。
|