WA-VERIFY-048: Add script/rails7_migration_patterns_check#1123
WA-VERIFY-048: Add script/rails7_migration_patterns_check#1123kitcommerce wants to merge 1 commit intonextfrom
Conversation
…e validation Closes #912 (WA-VERIFY-048) Adds a read-only Ruby script that scans docs/rails7-migration-patterns/*.md (excluding README.md) and verifies each file contains headings for the four required sections: Symptom, Root cause, Detection, Fix. - Exits 0 with a summary when all docs pass - Exits 1 and lists file(s) + missing sections when structure is incomplete - No modifications to docs; purely a validation tool
Simplicity ReviewVerdict: PASS_WITH_NOTES (LOW) Findings
Recommendations
|
Architecture ReviewVerdict: PASS Findings
Recommendations
Reviewed as part of WA-VERIFY-048. No architectural concerns. |
Security ReviewVerdict: PASS FindingsNo security issues identified. This is a 54-line read-only validation script that:
RecommendationsNone — clean from a security perspective. 🔒 Automated security review — Kit |
Rails Conventions ReviewVerdict: PASS_WITH_NOTES Findings
What's Good
Recommendations
Neither finding affects correctness or the Rails convention score meaningfully — this is dev tooling, not application code. The core logic is clean and idiomatic Ruby. Approving with the above notes for the author's consideration. |
Summary
Closes #912
Adds
script/rails7_migration_patterns_check, a read-only Ruby script that validates each Rails 7 migration pattern doc contains the four required structural headings.What it does
docs/rails7-migration-patterns/*.md(excludingREADME.md)Client impact
None (developer tooling only)
Verification Plan
# From repo root ./script/rails7_migration_patterns_checkExpected output (current state): exits 1, listing the 7 docs that are missing required sections — this confirms the script correctly identifies structural gaps in the existing docs.
To verify a passing run: add the four required headings to one of the listed files temporarily, re-run, and confirm that file no longer appears in the output.
To verify the script is read-only: inspect
git statusafter running — no files should be modified.