IvenKoo and morluto
27db243533
fix(static): keep quoted sample text out of the tech-debt marker scan ( #11712 )
...
fix(static): read comments instead of quoted text in the tech-debt scan
`npm run scan:todos` matched raw text, so a marker quoted inside a sample
string counted as debt: on `main` at a10037ef1 the only finding is the
JavaScript sample in
`tests/boundary/filesystem/mcpClientValidationGuard.test.ts`, and the
`Deep static checks` lane is red for every PR that runs it.
Decide what a comment is before counting a marker. JavaScript and TypeScript
are parsed with `@babel/parser`, whose comment ranges also survive a quote
inside a regex literal; `bridge/**/*.py` and `bridge/**/*.java` use a small
scanner that skips quoted and triple-quoted strings. Markers are matched per
occurrence, so a quoted marker earlier on the line no longer consumes a real
one, and an unparsable file stays conservative: every marker counts.
Fixes #11717 .
Verified: `npm run scan:todos` exits 0 on this tree; the extended
`tests/boundary/process/scanTodos.test.ts` (3 tests) covers a clean tree, a
quoted sample with a real marker on the same line, and comments in
TypeScript, Python and Java. `check:fast` passes.
Co-authored-by: morluto <76467478+morluto@users.noreply.github.com >
2026-11-18 17:54:40 -05:00
..
2026-11-18 15:27:23 -05:00
2026-11-16 14:58:17 -05:00
2026-11-18 15:33:46 -05:00
2026-11-16 10:59:18 +08:00
2026-11-18 10:49:22 -05:00
2026-10-21 21:19:45 -07:00
2026-10-23 02:31:11 +08:00
2026-11-11 17:28:10 +08:00
2026-11-18 16:06:51 -05:00
2026-10-26 16:04:44 +08:00
2026-10-12 09:25:27 +08:00
2026-11-14 20:25:11 +08:00
2026-11-14 04:08:37 -05:00
2026-11-17 14:57:30 -05:00
2026-10-09 20:11:17 +08:00
2026-10-15 20:11:26 +08:00
2026-11-11 17:20:22 +08:00
2026-11-15 20:35:48 +08:00
2026-10-26 14:46:35 +08:00
2026-11-11 00:16:44 -05:00
2026-11-16 10:59:18 +08:00
2026-10-13 18:23:17 +08:00
2026-10-26 15:49:58 +08:00
2026-10-08 22:43:51 +08:00
2026-11-16 05:31:37 +08:00
2026-10-13 12:06:41 +08:00
2026-10-30 18:29:18 +08:00
2026-11-09 20:48:08 +08:00
2026-10-27 17:13:17 +00:00
2026-11-14 11:48:19 +08:00
2026-10-14 04:47:34 +08:00
2026-11-03 09:33:41 +08:00
2026-10-24 09:24:43 +00:00
2026-07-17 00:16:46 +00:00
2026-10-13 22:03:16 +08:00
2026-11-16 13:56:34 +00:00
2026-11-17 19:58:40 +08:00
2026-11-16 18:57:12 +08:00
2026-11-18 07:00:09 +08:00
2026-10-11 11:49:49 +08:00
2026-10-24 11:41:34 +08:00
2026-11-12 05:08:27 -05:00
2026-11-12 20:29:42 -08:00
2026-10-14 13:58:17 +08:00
2026-11-01 00:15:28 +08:00
2026-10-24 15:57:23 +00:00
2026-10-31 16:43:04 +08:00
2026-10-21 19:47:52 +08:00
2026-10-21 19:47:52 +08:00
2026-11-17 08:28:59 -05:00
2026-11-18 17:54:40 -05:00
2026-11-18 07:12:22 +08:00
2026-11-18 07:12:22 +08:00
2026-11-16 00:06:34 +08:00
2026-11-15 20:55:29 -05:00
2026-11-15 20:32:38 +08:00
2026-11-15 22:01:49 +08:00
2026-11-15 21:51:18 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 00:06:34 +08:00
2026-11-16 00:01:18 +08:00
2026-11-16 03:56:10 +08:00
2026-10-14 09:55:09 +08:00
2026-10-14 09:55:09 +08:00
2026-10-24 21:51:41 +08:00
2026-10-07 21:45:07 +08:00
2026-10-14 09:55:09 +08:00
2026-10-14 09:47:57 +08:00
2026-11-16 00:04:05 +08:00
2026-11-16 05:31:37 +08:00
2026-11-15 20:19:27 +08:00
2026-11-15 20:19:27 +08:00
2026-11-18 15:08:58 -05:00
2026-11-16 05:31:37 +08:00
2026-11-17 10:47:29 +00:00
2026-11-15 20:19:27 +08:00
2026-11-15 21:07:13 +08:00
2026-11-17 14:57:30 -05:00
2026-11-17 10:04:46 +00:00
2026-11-17 10:04:46 +00:00
2026-11-16 00:06:34 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 00:39:50 +08:00
2026-11-15 21:51:18 +08:00
2026-11-18 16:06:51 -05:00
2026-11-16 00:04:05 +08:00
2026-11-16 06:28:01 +08:00
2026-11-17 08:19:52 +00:00
2026-11-16 06:28:01 +08:00
2026-11-16 03:56:10 +08:00
2026-11-16 03:38:57 +08:00
2026-11-15 22:01:49 +08:00
2026-08-05 19:07:46 +08:00
2026-11-16 03:56:10 +08:00
2026-11-15 20:19:27 +08:00
2026-11-16 00:06:34 +08:00
2026-11-16 00:06:34 +08:00
2026-11-16 04:27:07 +08:00
2026-11-16 00:06:34 +08:00
2026-11-15 20:19:27 +08:00
2026-11-15 20:19:27 +08:00
2026-10-24 22:28:39 +08:00
2026-10-24 22:28:39 +08:00
2026-10-24 16:58:18 +08:00
2026-10-24 22:28:39 +08:00
2026-11-14 04:08:37 -05:00
2026-11-14 04:08:37 -05:00
2026-11-16 08:04:12 +08:00
2026-11-17 08:28:59 -05:00
2026-10-24 22:28:39 +08:00
2026-11-15 21:51:18 +08:00
2026-11-18 15:33:46 -05:00
2026-10-24 16:58:18 +08:00
2026-10-24 22:28:39 +08:00
2026-10-12 18:44:02 +08:00
2026-10-20 00:05:22 +08:00
2026-10-20 00:05:22 +08:00
2026-10-24 17:54:18 +08:00
2026-11-13 10:11:06 -05:00
2026-10-24 22:28:39 +08:00
2026-11-01 18:36:21 +08:00
2026-11-17 16:34:22 -05:00
2026-11-15 22:01:49 +08:00
2026-11-15 21:50:00 +08:00
2026-11-16 00:04:05 +08:00
2026-10-24 16:58:18 +08:00
2026-10-27 17:13:17 +00:00
2026-11-16 00:04:05 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 00:06:34 +08:00
2026-11-15 22:01:49 +08:00
2026-11-15 21:51:18 +08:00
2026-11-15 20:19:27 +08:00
2026-11-15 21:51:18 +08:00
2026-11-16 00:06:34 +08:00
2026-11-02 02:13:32 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 06:28:01 +08:00
2026-11-14 04:08:37 -05:00
2026-11-16 00:19:07 +08:00
2026-11-18 16:40:18 -05:00
2026-11-15 19:52:38 +08:00
2026-11-15 19:52:38 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 06:28:01 +08:00
2026-11-18 16:06:51 -05:00
2026-11-18 16:06:51 -05:00
2026-11-04 19:51:27 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 05:37:57 +08:00
2026-11-16 07:04:34 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 05:37:57 +08:00
2026-11-16 07:04:34 +08:00
2026-11-16 05:37:57 +08:00
2026-11-16 06:28:01 +08:00
2026-11-18 16:06:51 -05:00
2026-11-18 16:06:51 -05:00
2026-10-05 22:54:17 +08:00
2026-10-06 01:59:19 +08:00
2026-11-16 06:28:01 +08:00
2026-11-18 16:06:51 -05:00
2026-11-18 16:06:51 -05:00
2026-11-16 03:56:10 +08:00
2026-11-16 03:56:10 +08:00
2026-11-16 03:56:10 +08:00
2026-11-15 21:37:40 +08:00
2026-11-15 21:51:18 +08:00
2026-11-16 08:08:38 +08:00
2026-11-18 16:06:51 -05:00
2026-10-27 01:11:51 +08:00
2026-11-15 21:51:18 +08:00
2026-11-15 22:01:49 +08:00
2026-10-08 10:13:05 +00:00
2026-11-15 22:01:49 +08:00
2026-11-17 08:28:59 -05:00
2026-11-15 21:51:18 +08:00
2026-10-13 21:55:30 +08:00
2026-11-16 00:04:05 +08:00
2026-11-16 03:57:03 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 06:38:13 -05:00
2026-10-23 16:06:27 +08:00
2026-10-26 16:04:44 +08:00
2026-11-15 21:50:00 +08:00
2026-11-16 03:56:10 +08:00
2026-11-17 08:28:59 -05:00
2026-11-03 09:33:41 +08:00
2026-10-23 16:06:27 +08:00
2026-11-03 09:33:41 +08:00
2026-10-26 14:46:23 +08:00