Affaan Mustafa and Affaan Mustafa
8c1925722c
refactor(lib): split powershell destructive-command scanners
...
The here-string normalizer, comment stripper, and balanced-group reader each
carried their own copy of the same inert-region state machine. They now share
createLexState, consumeInertChar, and openInertRegion. The container
extractor, statement tokenizer, nested pwsh scanner, cmd scanner, Start-Process
scanner, and top-level statement walk are split into small named helpers that
each handle one region or one command family.
No classification change. Verified against the recorded test inputs plus
mutated variants with an order-sensitive comparison of findings. Clears the
eleven complexity and prefer-const warnings on this file.
2026-10-19 22:18:32 -04:00
..
2026-10-19 22:03:57 -04:00
2026-10-01 17:50:41 -05:00
2026-10-11 01:55:54 -04:00
2026-10-10 17:41:38 -04:00
2026-10-11 06:15:49 -04:00
2026-10-01 17:50:41 -05:00
2026-10-02 00:49:31 +07:00
2026-10-19 22:03:57 -04:00
2026-10-19 22:18:32 -04:00
2026-10-10 18:38:26 -04:00
2026-10-08 11:44:07 +09:00
2026-10-01 17:50:41 -05:00
2026-04-05 14:47:26 -07:00
2026-10-09 17:27:37 -04:00
2026-03-27 05:56:39 -04:00
2026-10-01 17:50:41 -05:00
2026-08-06 15:39:49 -04:00
2026-09-27 16:46:07 -04:00
2026-09-10 14:11:51 +03:00
2026-10-09 19:33:37 -04:00
2026-05-19 06:42:17 -04:00
2026-08-25 12:17:21 -04:00
2026-09-27 16:46:07 -04:00
2026-09-12 04:35:38 -04:00
2026-08-04 21:42:25 -04:00
2026-09-28 00:38:00 -04:00
2026-09-29 21:50:19 -04:00
2026-07-26 03:20:15 -07:00
2026-06-11 14:05:42 -04:00
2026-05-12 02:59:52 -04:00
2026-10-09 16:11:22 -04:00
2026-10-10 17:49:10 -04:00
2026-10-11 02:03:09 -04:00
2026-09-07 16:26:10 -04:00
2026-08-07 14:53:13 -04:00
2026-08-25 12:17:21 -04:00
2026-04-30 12:25:14 -04:00
2026-06-06 03:55:17 +08:00
2026-09-19 16:51:53 -04:00
2026-07-26 02:46:59 -07:00
2026-08-25 17:19:45 -04:00
2026-05-14 21:15:35 -04:00
2026-05-19 23:25:38 -04:00
2026-10-10 18:56:12 -04:00
2026-03-12 15:40:25 -07:00
2026-03-14 12:55:25 -07:00
2026-09-28 01:38:53 -04:00
2026-05-19 22:09:45 -04:00
2026-05-19 22:09:45 -04:00
2026-10-10 17:44:29 -04:00
2026-06-20 20:49:17 -04:00
2026-10-10 18:47:48 -04:00
2026-06-29 15:50:55 -07:00
2026-06-29 15:50:57 -07:00
2026-10-10 20:11:00 +08:00
2026-10-10 13:56:00 +05:30
2026-03-14 23:21:18 -07:00
2026-03-28 11:28:12 +08:00
2026-02-13 03:37:46 -08:00
2026-08-06 15:39:49 -04:00
2026-10-01 17:50:41 -05:00
2026-03-16 14:01:41 -07:00
2026-08-25 12:17:21 -04:00
2026-10-11 01:55:54 -04:00
2026-09-07 16:40:47 -04:00
2026-08-06 15:39:49 -04:00
2026-10-11 02:08:19 -04:00
2026-06-07 13:00:08 +08:00