buildRoadmapPhaseVariants() only matched heading-style phases (## Phase N:), silently skipping the supported checklist format (- [x] **Phase N: name**). This caused W007 false-positives for every on-disk phase dir when the project uses a checklist ROADMAP. Fix adds a second regex pass (mirroring the existing buildNotStartedPhaseVariants() approach). Also refactors the duplicate inline heading-only regex in cmdValidateConsistency() to delegate to buildRoadmapPhaseVariants() (DRY). Regression test in tests/bug-892-validate-checklist-roadmap-phases.test.cjs covers both paths. Closes #892 Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -131,6 +131,14 @@
|
||||
"install.test.cjs"
|
||||
],
|
||||
"issue": "TBD"
|
||||
},
|
||||
"validate": {
|
||||
"files": [
|
||||
"bug-3129-validate-commit-git-bypass.test.cjs",
|
||||
"bug-892-validate-checklist-roadmap-phases.test.cjs",
|
||||
"validate-context.test.cjs"
|
||||
],
|
||||
"issue": "892"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user