Commit fd1f1e3
committed
fix(scripts): harden layer-order parsing and clarify doc-refs skip message
Address two Greptile P2 maintainability findings on the new gates:
- check-layer-order.js: strip CSS comments before locating the @layer
declaration so an `@layer` mention inside a file-header comment can't be
mistaken for the real declaration (which would land the terminator search on
a comment semicolon and silently extract the wrong layers). Added a
regression test.
- check-doc-refs.js: the success line unconditionally read "token-count claims
match" even when token-index.json was absent and the count check was skipped
(a local pre-build run). Now it says the check was skipped in that case, so
the OK message never implies validation that didn't run.
Full suite: 129 unit tests pass.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Dr51QC66ZtLKW6S2CWbiWi1 parent 9ab8085 commit fd1f1e3
3 files changed
Lines changed: 24 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
167 | 173 | | |
168 | 174 | | |
169 | | - | |
170 | | - | |
| 175 | + | |
171 | 176 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
44 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
45 | 49 | | |
46 | 50 | | |
47 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
70 | 82 | | |
71 | 83 | | |
72 | 84 | | |
| |||
0 commit comments