From d5d30ed9123213c798bd1ffab20d33e3bb3746bb Mon Sep 17 00:00:00 2001 From: saravanakumardb1 Date: Sat, 23 May 2026 14:23:55 -0700 Subject: [PATCH] feat(scripts): scanner precision tweaks + Phase 2b complete (8 repos clean) Scanner refinements eliminate 3 false-positive categories: 1. tailwind.config.{ts,js,cjs,mjs} \u2014 these declare color palettes for downstream Tailwind classes; the hex is the definition. 2. **/backend/** files \u2014 backend modules don't do UI styling. Hex values there are domain data (theme presets, zone colors, agent accent colors) stored in Cosmos / sent to clients as data. 3. /tools/{color-picker,markdown-preview,qr-code,image-to-base64, regex-tester}/ pages in productivity_web \u2014 these tools manipulate hex/color values as their primary content, not for styling. 4. HTML numeric character references like 📄 \u2014 they encode Unicode characters, not hex colors (digits subset of hex fool regex). 5. themeColor: metadata in Next.js layouts (PWA manifest spec). Phase 2b fixes pushed to: - learning_ai_jarvis_jr (1 hex \u2192 0) commit bf9e1c7 - oss/learning_ai_claw-cowork (2 real hex \u2192 0) commit 9017dd8 (productivity_web 9 \u2192 0 and voice_ai_agent 16 \u2192 0 cleared automatically by the scanner refinement, no source changes needed in those repos.) Cumulative progress: Total findings: 2548 (Phase 0 start) \u2192 1577 (-38%) web-hardcoded-hex: 465 \u2192 406 (-13%) Repos at 0 hex findings (8/19): - learning_ai_smart_auth learning_ai_auth_app - learning_ai_talk2obsidian learning_ai_local_memory_gpt - learning_ai_trails learning_ai_local_llms - learning_ai_jarvis_jr learning_ai_productivity_web - learning_voice_ai_agent oss/learning_ai_claw-cowork Remaining hex-heavy repos: - learning_ai_flowmonk 107 - learning_multimodal_memory 94 - learning_ai_fastgap 89 - learning_ai_common_plat 59 - learning_ai_efforise 39 - learning_ai_mac_tooling 18 --- reports/rule-violations-baseline.md | 71 ++++------------------------- scripts/check-rule-violations.sh | 15 ++++-- 2 files changed, 21 insertions(+), 65 deletions(-) diff --git a/reports/rule-violations-baseline.md b/reports/rule-violations-baseline.md index ed655906..53a9aa1a 100644 --- a/reports/rule-violations-baseline.md +++ b/reports/rule-violations-baseline.md @@ -237,7 +237,7 @@ Severity legend: **critical** = data/security risk · **major** = rule violation ## `learning_voice_ai_agent` -**Counts:** critical=2 · major=21 · minor=89 · total=112 +**Counts:** critical=2 · major=5 · minor=89 · total=96 - **[major]** `src/audio/sounds.py:115` — Python print(): print("\a", end="", flush=True) - **[major]** `src/audio/sounds.py:120` — Python print(): print("\a", end="", flush=True) @@ -245,22 +245,6 @@ Severity legend: **critical** = data/security risk · **major** = rule violation - **[major]** `src/cli_output.py:30` — Python print(): print(message) # noqa: T201 — intentional CLI output - **[major]** `src/cli_output.py:36` — Python print(): print(message, file=sys.stderr) # noqa: T201 — intentional CLI output - **[minor]** `user-dashboard-web/src/lib/api-handler.ts:10` — any type: type RouteHandler = (req: NextRequest, ctx: any) => Promise Promise