Repository navigation
Commit e621a9f
test(cli): exempt the two ci.txt lines where a literal invocation is correct
The source guard and the `ci.txt` prose it flags were written on separate
branches and were each correct in isolation. Combined, the guard fires on
two lines that are deliberately literal:
- the enumeration of what `%(PACKAGE_MANAGER_DLX)s` expands to, where
naming the four complete invocations IS the documentation — substituting
the variable would define the placeholder in terms of itself
- `pnpm taskless check`, where `taskless` is the binary pnpm resolves from
the wired repo's own `node_modules/.bin`. It is a foreign binary, not
this CLI's invocation, and `%(TASKLESS_CLI)s` would render it as
`pnpm npx @taskless/cli check`
Both are prose *about* invocations rather than an instruction to run one,
which is the distinction the regex cannot draw on its own. They are
exempted by content match with the reason recorded, not by line number, so
an edit above them cannot move the exemption onto a different line.
An allowlist nobody rechecks is how a guard quietly stops guarding, so a
second test fails when an entry no longer matches a line the regex would
otherwise flag. Verified by breaking an entry and watching it fail rather
than by assuming it passes.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Cyga14bww8rmazH2XrF8ms1 parent 0e86f11 commit e621a9f
1 file changed
Lines changed: 52 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
80 | 110 | | |
81 | 111 | | |
82 | 112 | | |
| |||
180 | 210 | | |
181 | 211 | | |
182 | 212 | | |
183 | | - | |
| 213 | + | |
184 | 214 | | |
185 | 215 | | |
186 | 216 | | |
| |||
191 | 221 | | |
192 | 222 | | |
193 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
194 | 245 | | |
195 | 246 | | |
196 | 247 | | |
| |||
0 commit comments