Willie
1caba253c6
fix(audit): prevent severity-only merge from wiping rules and enable --pattern from ignoring ID-level disables
...
P1: mergeYAMLRules Phase 2 used full-object replacement for overlays
without Enabled set, causing severity-only entries ({id, severity}) to
wipe regex/pattern/message from the base rule. compileRules then failed
with "empty regex". Now uses field-level merge: only entries with Regex
do full replacement; otherwise Enabled and Severity are patched
individually.
P2: TogglePattern enable only removed pattern-level disable entries,
leaving ID-level {id: "x", enabled: false} untouched — both builtin
and custom rules. Now clearDisableForPattern matches by builtin ID set
OR by r.Pattern == pattern, covering custom rules in the same group.
2026-03-03 16:08:11 +08:00
..
2026-02-28 03:44:02 +08:00
2026-02-25 07:02:54 +08:00
2026-03-03 16:08:11 +08:00
2026-03-02 02:23:50 +08:00
2026-02-21 06:07:35 +08:00
2026-02-25 07:02:54 +08:00
2026-02-26 22:27:23 +08:00
2026-02-28 18:48:51 +08:00
2026-02-16 00:08:59 +08:00
2026-02-11 03:40:54 +08:00
2026-02-25 07:02:54 +08:00
2026-03-02 02:23:50 +08:00
2026-02-28 18:48:51 +08:00
2026-02-16 00:08:59 +08:00
2026-02-16 00:08:59 +08:00
2026-02-11 03:40:54 +08:00
2026-02-13 14:21:37 +08:00
2026-02-13 14:21:37 +08:00
2026-02-24 01:47:38 +08:00
2026-02-28 03:44:02 +08:00
2026-02-23 04:18:01 +08:00
2026-02-21 06:07:35 +08:00
2026-02-18 22:23:50 +08:00
2026-02-18 22:23:50 +08:00
2026-02-18 22:23:50 +08:00
2026-02-27 05:39:49 +08:00
2026-02-25 07:02:54 +08:00
2026-02-18 22:23:50 +08:00
2026-02-18 22:23:50 +08:00
2026-02-25 07:02:54 +08:00
2026-02-23 04:18:01 +08:00
2026-02-24 01:47:38 +08:00
2026-02-25 07:02:54 +08:00
2026-02-24 01:47:38 +08:00
2026-02-21 06:07:35 +08:00
2026-02-25 07:02:54 +08:00
2026-02-25 07:02:54 +08:00
2026-02-26 22:27:23 +08:00
2026-02-16 00:08:59 +08:00
2026-02-24 01:47:38 +08:00
2026-02-11 03:40:54 +08:00
2026-02-22 15:13:10 +08:00
2026-02-21 21:12:51 +08:00
2026-03-02 02:23:50 +08:00
2026-02-27 05:39:49 +08:00
2026-02-13 14:21:37 +08:00
2026-02-11 03:40:54 +08:00
2026-02-16 00:08:59 +08:00
2026-02-16 00:08:59 +08:00
2026-02-11 03:40:54 +08:00
2026-02-27 05:39:49 +08:00
2026-02-16 00:08:59 +08:00
2026-02-26 22:27:23 +08:00
2026-03-02 10:05:57 +08:00
2026-02-20 13:45:52 +08:00
2026-02-25 07:02:54 +08:00
2026-02-16 00:08:59 +08:00
2026-02-21 06:07:35 +08:00
2026-02-21 06:07:35 +08:00
2026-03-02 02:23:50 +08:00
2026-02-16 00:08:59 +08:00
2026-02-16 10:41:14 +08:00
2026-02-25 07:02:54 +08:00
2026-02-27 05:39:49 +08:00
2026-02-16 10:41:14 +08:00
2026-02-21 06:07:35 +08:00
2026-02-23 04:18:01 +08:00
2026-02-26 22:27:23 +08:00
2026-02-26 22:27:23 +08:00
2026-02-25 07:02:54 +08:00
2026-02-16 14:51:13 +08:00
2026-02-11 03:40:54 +08:00
2026-02-16 10:41:14 +08:00