Commit 2d2cd17
committed
test: check the compact samples, which nothing was checking
The two text formats spell a check name differently — the default output
prints the kebab-case name, --compact prints the config key — so a sample
of one cannot be validated against the other. The existing guard only
matches the default format, which meant every --compact sample on the
site was checked by nothing at all.
That is the same blind spot that let a pre-2.13 sample sit unnoticed in
the troubleshooting page: the sample was stale in a format the guard
could not see, and every test still passed. Fixing that one sample did
not close the hole it came through.
Two samples were uncovered, in example.md and rules.md — one indented
inside a content tab, one not, so the pattern allows leading whitespace.
Verified by breaking one deliberately: the guard names the file and both
spellings, rather than only going red.
This also decides what happens if commit-check#528 reconciles the two
formats upstream. Today that would quietly leave both samples wrong;
now docs-sync fails and says which lines to rewrite.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01U9zFxq8V4qxG4aMzJhGBFn1 parent deeb0bd commit 2d2cd17
1 file changed
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| |||
83 | 87 | | |
84 | 88 | | |
85 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
86 | 117 | | |
87 | 118 | | |
88 | 119 | | |
| |||
0 commit comments