Files
ForgeFlow/reports/architecture-audit.md
T
NuklearRabbitandClaude Opus 5 d77643c058 refactor(renderer): move diff rendering into its own module
views.js sat at the project's 750-line limit, so the diff cap in the previous
commit pushed it over and every further change would have meant shaving
comments elsewhere. That is the file asking for decomposition, which is what the
architecture audit says to do.

Diff rendering is self-contained: the line cap, the line classifier and the
change-map illustration depend on nothing in views.js beyond ui and escapeHtml.
They now live in src/renderer/diff-view.js and are registered in index.html and
in the three renderer file lists that scan the bridge surface, so anything added
there is covered by the existing contract tests.

views.js drops from 755 to 714 lines and no source file exceeds 750 again. The
nested ternary that classified a diff line became a named function with guard
clauses on the way.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-23 14:51:31 +02:00

1.3 KiB

ForgeFlow architecture audit

Generated 2026-08-23T12:51:31.496Z. Complexity is a deterministic decision-point count used for hotspot ranking, not a claim of exact McCabe complexity.

Files above 750 lines

File Lines Decisions Functions IPC handlers Responsibilities
No findings.

Files above 1,000 lines

File Lines Decisions Functions IPC handlers Responsibilities
No findings.

Cyclomatic hotspots

File Lines Decisions Functions IPC handlers Responsibilities
src/renderer/actions/shell.js 518 101 86 0 inventory, deployment, git, renderer, updates
src/renderer/app.js 732 80 124 0 inventory, deployment, git, renderer, security, updates
src/main/server-inventory.cjs 578 89 104 0 inventory, deployment, git, security, updates
src/main/git-service.cjs 687 111 118 0 git, security
src/main/unraid-inventory-methods.cjs 708 76 93 0 inventory, deployment, git, security, updates

Interpretation

Files above 750 lines require decomposition. Files above 1,000 lines are release blockers unless a concrete technical exception is documented. Mixed responsibility and IPC hotspot lists are available in the JSON report.