FN-6917: re-ratchet line-count baseline
Re-ratchet the opt-in line-count audit baseline so current oversized files no longer fail the ceiling check. - Document that the pnpm test blocker premise is stale because the guard is opt-in. - Refresh grandfathered line-count ceilings to the current merged tree. - Add TerminalModal.tsx to the grandfathered oversized-file baseline and drop entries that no longer need it. Files changed: scripts/check-file-line-count.mjs | 3 ++ scripts/line-count-baseline.json | 80 +++++++++++++++++++-------------------- 2 files changed, 42 insertions(+), 41 deletions(-) Fusion-Task-Id: FN-6917 Fusion-Task-Lineage: aaa018d8-f1a3-47a5-b63b-f18bac87b910
This commit is contained in:
@@ -19,6 +19,9 @@ maintenance change.
|
||||
|
||||
FNXC:CI 2026-06-21-12:35:
|
||||
FN-6871 corrects the stale premise that line-count drift blocks `pnpm test`: FN-5048 removed this guard from pretest, so it now runs only through the opt-in `check:line-count` audit. Eleven grandfathered files were re-ratcheted to current counts after small organic feature/test growth; broad shrink/refactor work for these god-files remains the long-term direction and belongs in dedicated follow-up tasks.
|
||||
|
||||
FNXC:CI 2026-06-21-23:53:
|
||||
FN-6917 re-confirms the `pnpm test`-blocking premise is stale because FN-5048 left this guard opt-in under `check:line-count` only. Twenty files were re-ratcheted after organic feature/test growth; `TerminalModal.tsx` was grandfathered after crossing the hard cap as a long-existing file, with focused split follow-up FN-6918. Wholesale god-file shrink/refactor remains the long-term direction and stays deferred to dedicated follow-ups.
|
||||
*/
|
||||
// Repo-wide guard: hand-written source files may not exceed a hard line-count
|
||||
// cap (MAX_LINES). This stops the next god-file from being born while leaving
|
||||
|
||||
@@ -12,53 +12,51 @@
|
||||
"packages/core/src/__tests__/db.test.ts": 3606,
|
||||
"packages/core/src/__tests__/mission-store.test.ts": 4405,
|
||||
"packages/core/src/__tests__/plugin-loader.test.ts": 2783,
|
||||
"packages/core/src/__tests__/store-settings.test.ts": 2196,
|
||||
"packages/core/src/__tests__/store-settings.test.ts": 2202,
|
||||
"packages/core/src/agent-store.ts": 2946,
|
||||
"packages/core/src/central-core.ts": 3854,
|
||||
"packages/core/src/db.ts": 5874,
|
||||
"packages/core/src/mission-store.ts": 4382,
|
||||
"packages/core/src/store.ts": 16865,
|
||||
"packages/core/src/types.ts": 7260,
|
||||
"packages/dashboard/app/App.tsx": 2326,
|
||||
"packages/dashboard/app/api/legacy.ts": 10646,
|
||||
"packages/core/src/store.ts": 16939,
|
||||
"packages/core/src/types.ts": 7269,
|
||||
"packages/dashboard/app/App.tsx": 2729,
|
||||
"packages/dashboard/app/api/legacy.ts": 10742,
|
||||
"packages/dashboard/app/components/AgentDetailView.tsx": 5400,
|
||||
"packages/dashboard/app/components/AgentsView.tsx": 2101,
|
||||
"packages/dashboard/app/components/ChatView.tsx": 3964,
|
||||
"packages/dashboard/app/components/GitManagerModal.tsx": 3203,
|
||||
"packages/dashboard/app/components/ListView.tsx": 2449,
|
||||
"packages/dashboard/app/components/MissionManager.tsx": 4999,
|
||||
"packages/dashboard/app/components/ModelOnboardingModal.tsx": 2932,
|
||||
"packages/dashboard/app/components/PlanningModeModal.tsx": 3328,
|
||||
"packages/dashboard/app/components/QuickChatFAB.tsx": 3560,
|
||||
"packages/dashboard/app/components/QuickEntryBox.tsx": 2210,
|
||||
"packages/dashboard/app/components/SettingsModal.tsx": 3265,
|
||||
"packages/dashboard/app/components/AgentsView.tsx": 2109,
|
||||
"packages/dashboard/app/components/ChatView.tsx": 4074,
|
||||
"packages/dashboard/app/components/GitManagerModal.tsx": 3249,
|
||||
"packages/dashboard/app/components/ListView.tsx": 2486,
|
||||
"packages/dashboard/app/components/MissionManager.tsx": 4990,
|
||||
"packages/dashboard/app/components/ModelOnboardingModal.tsx": 3212,
|
||||
"packages/dashboard/app/components/PlanningModeModal.tsx": 3454,
|
||||
"packages/dashboard/app/components/QuickEntryBox.tsx": 2229,
|
||||
"packages/dashboard/app/components/SettingsModal.tsx": 3336,
|
||||
"packages/dashboard/app/components/TaskCard.tsx": 2528,
|
||||
"packages/dashboard/app/components/TaskDetailModal.tsx": 4579,
|
||||
"packages/dashboard/app/components/WorkflowNodeEditor.tsx": 4632,
|
||||
"packages/dashboard/app/components/__tests__/AgentsView.test.tsx": 2761,
|
||||
"packages/dashboard/app/components/__tests__/App.test.tsx": 4257,
|
||||
"packages/dashboard/app/components/__tests__/ChatView.test.tsx": 5677,
|
||||
"packages/dashboard/app/components/__tests__/GitManagerModal.test.tsx": 3427,
|
||||
"packages/dashboard/app/components/__tests__/ListView.test.tsx": 4286,
|
||||
"packages/dashboard/app/components/__tests__/MailboxView.test.tsx": 2037,
|
||||
"packages/dashboard/app/components/__tests__/ModelOnboardingModal.test.tsx": 4575,
|
||||
"packages/dashboard/app/components/TaskDetailModal.tsx": 4653,
|
||||
"packages/dashboard/app/components/TerminalModal.tsx": 2313,
|
||||
"packages/dashboard/app/components/WorkflowNodeEditor.tsx": 4777,
|
||||
"packages/dashboard/app/components/__tests__/AgentsView.test.tsx": 2767,
|
||||
"packages/dashboard/app/components/__tests__/App.test.tsx": 4262,
|
||||
"packages/dashboard/app/components/__tests__/ChatView.test.tsx": 5766,
|
||||
"packages/dashboard/app/components/__tests__/GitManagerModal.test.tsx": 3428,
|
||||
"packages/dashboard/app/components/__tests__/ListView.test.tsx": 4334,
|
||||
"packages/dashboard/app/components/__tests__/MailboxView.test.tsx": 2072,
|
||||
"packages/dashboard/app/components/__tests__/ModelOnboardingModal.test.tsx": 4679,
|
||||
"packages/dashboard/app/components/__tests__/PlanningModeModal.planning-flow.test.tsx": 2771,
|
||||
"packages/dashboard/app/components/__tests__/QuickChatFAB.test.tsx": 2816,
|
||||
"packages/dashboard/app/components/__tests__/QuickEntryBox.test.tsx": 4538,
|
||||
"packages/dashboard/app/components/__tests__/SettingsModal.test.tsx": 5427,
|
||||
"packages/dashboard/app/components/__tests__/QuickEntryBox.test.tsx": 4593,
|
||||
"packages/dashboard/app/components/__tests__/SettingsModal.test.tsx": 5501,
|
||||
"packages/dashboard/app/components/__tests__/TaskCard.test.tsx": 5121,
|
||||
"packages/dashboard/app/components/__tests__/TaskChatTab.test.tsx": 2407,
|
||||
"packages/dashboard/app/components/__tests__/TaskChatTab.test.tsx": 2405,
|
||||
"packages/dashboard/app/components/__tests__/TaskDetailModal.inline-editing-and-integrations.test.tsx": 2917,
|
||||
"packages/dashboard/app/components/__tests__/TaskDetailModal.rendering.test.tsx": 2297,
|
||||
"packages/dashboard/app/components/__tests__/TerminalModal.test.tsx": 5689,
|
||||
"packages/dashboard/app/components/__tests__/TaskDetailModal.rendering.test.tsx": 2382,
|
||||
"packages/dashboard/app/components/__tests__/TerminalModal.test.tsx": 5694,
|
||||
"packages/dashboard/app/components/__tests__/UsageIndicator.test.tsx": 2905,
|
||||
"packages/dashboard/app/components/__tests__/WorkflowNodeEditor.test.tsx": 3308,
|
||||
"packages/dashboard/app/components/__tests__/WorkflowNodeEditor.test.tsx": 3414,
|
||||
"packages/dashboard/app/hooks/__tests__/useChat.test.ts": 4097,
|
||||
"packages/dashboard/app/hooks/__tests__/useQuickChat.test.ts": 2706,
|
||||
"packages/dashboard/app/hooks/__tests__/useTasks.test.ts": 2582,
|
||||
"packages/dashboard/src/__tests__/chat-manager.test.ts": 2636,
|
||||
"packages/dashboard/src/__tests__/file-service.test.ts": 2123,
|
||||
"packages/dashboard/src/__tests__/github.test.ts": 2222,
|
||||
"packages/dashboard/src/__tests__/github.test.ts": 2326,
|
||||
"packages/dashboard/src/__tests__/plugin-routes.test.ts": 2069,
|
||||
"packages/dashboard/src/__tests__/routes-agents.test.ts": 4921,
|
||||
"packages/dashboard/src/__tests__/routes-auth.test.ts": 3980,
|
||||
@@ -70,13 +68,13 @@
|
||||
"packages/dashboard/src/__tests__/routes-tasks-ops.test.ts": 4158,
|
||||
"packages/dashboard/src/__tests__/routes-tasks.test.ts": 2696,
|
||||
"packages/dashboard/src/__tests__/server.test.ts": 3048,
|
||||
"packages/dashboard/src/__tests__/usage.test.ts": 4327,
|
||||
"packages/dashboard/src/__tests__/usage.test.ts": 4328,
|
||||
"packages/dashboard/src/chat.ts": 2197,
|
||||
"packages/dashboard/src/github.ts": 4178,
|
||||
"packages/dashboard/src/github.ts": 4575,
|
||||
"packages/dashboard/src/mission-routes.ts": 3948,
|
||||
"packages/dashboard/src/planning.ts": 2700,
|
||||
"packages/dashboard/src/routes.ts": 5296,
|
||||
"packages/dashboard/src/routes/register-git-github.ts": 5637,
|
||||
"packages/dashboard/src/routes/register-git-github.ts": 5792,
|
||||
"packages/dashboard/src/routes/register-settings-memory-routes.ts": 2421,
|
||||
"packages/dashboard/src/routes/register-task-workflow-routes.ts": 3861,
|
||||
"packages/dashboard/src/server.ts": 2378,
|
||||
@@ -91,18 +89,18 @@
|
||||
"packages/engine/src/__tests__/mission-execution-loop.test.ts": 2463,
|
||||
"packages/engine/src/__tests__/pi-create-fn-agent.test.ts": 2233,
|
||||
"packages/engine/src/__tests__/project-engine.test.ts": 2851,
|
||||
"packages/engine/src/__tests__/scheduler.test.ts": 5395,
|
||||
"packages/engine/src/__tests__/scheduler.test.ts": 5412,
|
||||
"packages/engine/src/__tests__/self-healing.test.ts": 9641,
|
||||
"packages/engine/src/__tests__/step-session-executor.test.ts": 2911,
|
||||
"packages/engine/src/__tests__/triage.test.ts": 4511,
|
||||
"packages/engine/src/__tests__/triage.test.ts": 4534,
|
||||
"packages/engine/src/agent-heartbeat.ts": 4557,
|
||||
"packages/engine/src/agent-tools.ts": 3870,
|
||||
"packages/engine/src/executor.ts": 16059,
|
||||
"packages/engine/src/merger.ts": 12643,
|
||||
"packages/engine/src/executor.ts": 16071,
|
||||
"packages/engine/src/merger.ts": 12663,
|
||||
"packages/engine/src/pi.ts": 2435,
|
||||
"packages/engine/src/project-engine.ts": 3663,
|
||||
"packages/engine/src/scheduler.ts": 2638,
|
||||
"packages/engine/src/self-healing.ts": 10316,
|
||||
"packages/engine/src/triage.ts": 2793,
|
||||
"plugins/fusion-plugin-roadmap/src/dashboard/RoadmapsView.tsx": 2559
|
||||
"plugins/fusion-plugin-roadmap/src/dashboard/RoadmapsView.tsx": 2583
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user