FN-6849: refresh line-count guardrail baseline
Refresh the line-count guardrail baseline so pretest accepts the current grandfathered source sizes. - Document the FN-6849 maintenance re-ratchet in the line-count guard script. - Regenerate the grandfathered line-count baseline for current oversized source and test files. - Keep the guardrail active while unblocking unrelated pretest runs. Files changed: scripts/check-file-line-count.mjs | 7 ++++ scripts/line-count-baseline.json | 74 +++++++++++++++++++-------------------- 2 files changed, 44 insertions(+), 37 deletions(-) Fusion-Task-Id: FN-6849 Fusion-Task-Lineage: 07c04c2a-535c-43b0-9dd5-700ead4e06f0
This commit is contained in:
@@ -9,6 +9,13 @@ refactored in one PR, so they are grandfathered through a ratchet baseline
|
||||
but never grow, applying steady downward pressure without blocking unrelated
|
||||
work. Generated/lock/locale/.d.ts files are out of scope so the guard only
|
||||
governs hand-written source.
|
||||
|
||||
FNXC:CI 2026-06-21-00:30:
|
||||
FN-6849 re-ratcheted 26 grandfathered ceilings to current counts after organic
|
||||
feature and test growth, while also tightening three entries that had already
|
||||
shrunk. Large-file reduction remains the intended long-term direction, but that
|
||||
work belongs in dedicated follow-up refactors rather than a pretest-unblock
|
||||
maintenance change.
|
||||
*/
|
||||
// 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
|
||||
|
||||
@@ -1,31 +1,45 @@
|
||||
{
|
||||
"packages/cli/src/__tests__/extension.test.ts": 4186,
|
||||
"packages/cli/src/bin.ts": 2065,
|
||||
"packages/cli/src/commands/__tests__/dashboard.test.ts": 3346,
|
||||
"packages/cli/src/bin.ts": 2068,
|
||||
"packages/cli/src/commands/__tests__/dashboard.test.ts": 3366,
|
||||
"packages/cli/src/commands/__tests__/serve.test.ts": 2100,
|
||||
"packages/cli/src/commands/__tests__/task.test.ts": 3424,
|
||||
"packages/cli/src/commands/dashboard-tui/app.tsx": 4665,
|
||||
"packages/cli/src/commands/dashboard.ts": 2951,
|
||||
"packages/cli/src/commands/dashboard.ts": 2960,
|
||||
"packages/cli/src/extension.ts": 4704,
|
||||
"packages/core/src/__tests__/agent-store.test.ts": 2997,
|
||||
"packages/core/src/__tests__/central-core.test.ts": 3263,
|
||||
"packages/core/src/__tests__/db.test.ts": 3601,
|
||||
"packages/core/src/__tests__/mission-store.test.ts": 4287,
|
||||
"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/agent-store.ts": 2946,
|
||||
"packages/core/src/central-core.ts": 3854,
|
||||
"packages/core/src/db.ts": 5770,
|
||||
"packages/core/src/mission-store.ts": 4293,
|
||||
"packages/core/src/store.ts": 16537,
|
||||
"packages/core/src/types.ts": 7163,
|
||||
"packages/dashboard/app/api/legacy.ts": 10565,
|
||||
"packages/dashboard/app/App.tsx": 2295,
|
||||
"packages/core/src/db.ts": 5840,
|
||||
"packages/core/src/mission-store.ts": 4382,
|
||||
"packages/core/src/store.ts": 16755,
|
||||
"packages/core/src/types.ts": 7246,
|
||||
"packages/dashboard/app/App.tsx": 2293,
|
||||
"packages/dashboard/app/api/legacy.ts": 10568,
|
||||
"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": 3186,
|
||||
"packages/dashboard/app/components/ListView.tsx": 2414,
|
||||
"packages/dashboard/app/components/MissionManager.tsx": 4999,
|
||||
"packages/dashboard/app/components/ModelOnboardingModal.tsx": 2932,
|
||||
"packages/dashboard/app/components/PlanningModeModal.tsx": 3319,
|
||||
"packages/dashboard/app/components/QuickChatFAB.tsx": 3560,
|
||||
"packages/dashboard/app/components/QuickEntryBox.tsx": 2207,
|
||||
"packages/dashboard/app/components/SettingsModal.tsx": 3240,
|
||||
"packages/dashboard/app/components/TaskCard.tsx": 2528,
|
||||
"packages/dashboard/app/components/TaskDetailModal.tsx": 4569,
|
||||
"packages/dashboard/app/components/WorkflowNodeEditor.tsx": 4457,
|
||||
"packages/dashboard/app/components/__tests__/AgentsView.test.tsx": 2761,
|
||||
"packages/dashboard/app/components/__tests__/App.test.tsx": 4304,
|
||||
"packages/dashboard/app/components/__tests__/App.test.tsx": 4274,
|
||||
"packages/dashboard/app/components/__tests__/ChatView.test.tsx": 5677,
|
||||
"packages/dashboard/app/components/__tests__/GitManagerModal.test.tsx": 3274,
|
||||
"packages/dashboard/app/components/__tests__/ListView.test.tsx": 4113,
|
||||
"packages/dashboard/app/components/__tests__/ListView.test.tsx": 4247,
|
||||
"packages/dashboard/app/components/__tests__/MailboxView.test.tsx": 2037,
|
||||
"packages/dashboard/app/components/__tests__/ModelOnboardingModal.test.tsx": 4575,
|
||||
"packages/dashboard/app/components/__tests__/PlanningModeModal.planning-flow.test.tsx": 2746,
|
||||
@@ -38,21 +52,7 @@
|
||||
"packages/dashboard/app/components/__tests__/TaskDetailModal.rendering.test.tsx": 2297,
|
||||
"packages/dashboard/app/components/__tests__/TerminalModal.test.tsx": 5578,
|
||||
"packages/dashboard/app/components/__tests__/UsageIndicator.test.tsx": 2877,
|
||||
"packages/dashboard/app/components/__tests__/WorkflowNodeEditor.test.tsx": 3138,
|
||||
"packages/dashboard/app/components/AgentDetailView.tsx": 5399,
|
||||
"packages/dashboard/app/components/AgentsView.tsx": 2101,
|
||||
"packages/dashboard/app/components/ChatView.tsx": 3964,
|
||||
"packages/dashboard/app/components/GitManagerModal.tsx": 3186,
|
||||
"packages/dashboard/app/components/ListView.tsx": 2397,
|
||||
"packages/dashboard/app/components/MissionManager.tsx": 4999,
|
||||
"packages/dashboard/app/components/ModelOnboardingModal.tsx": 2932,
|
||||
"packages/dashboard/app/components/PlanningModeModal.tsx": 3319,
|
||||
"packages/dashboard/app/components/QuickChatFAB.tsx": 3559,
|
||||
"packages/dashboard/app/components/QuickEntryBox.tsx": 2206,
|
||||
"packages/dashboard/app/components/SettingsModal.tsx": 3239,
|
||||
"packages/dashboard/app/components/TaskCard.tsx": 2528,
|
||||
"packages/dashboard/app/components/TaskDetailModal.tsx": 4568,
|
||||
"packages/dashboard/app/components/WorkflowNodeEditor.tsx": 4381,
|
||||
"packages/dashboard/app/components/__tests__/WorkflowNodeEditor.test.tsx": 3174,
|
||||
"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,
|
||||
@@ -64,12 +64,12 @@
|
||||
"packages/dashboard/src/__tests__/routes-auth.test.ts": 3980,
|
||||
"packages/dashboard/src/__tests__/routes-automation.test.ts": 2393,
|
||||
"packages/dashboard/src/__tests__/routes-github.test.ts": 2855,
|
||||
"packages/dashboard/src/__tests__/routes-nodes-sync.test.ts": 2476,
|
||||
"packages/dashboard/src/__tests__/routes-nodes-sync.test.ts": 2479,
|
||||
"packages/dashboard/src/__tests__/routes-planning.test.ts": 4346,
|
||||
"packages/dashboard/src/__tests__/routes-settings.test.ts": 3122,
|
||||
"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": 2964,
|
||||
"packages/dashboard/src/__tests__/server.test.ts": 3048,
|
||||
"packages/dashboard/src/__tests__/usage.test.ts": 4327,
|
||||
"packages/dashboard/src/chat.ts": 2193,
|
||||
"packages/dashboard/src/github.ts": 4178,
|
||||
@@ -79,27 +79,27 @@
|
||||
"packages/dashboard/src/routes/register-git-github.ts": 5637,
|
||||
"packages/dashboard/src/routes/register-settings-memory-routes.ts": 2421,
|
||||
"packages/dashboard/src/routes/register-task-workflow-routes.ts": 3738,
|
||||
"packages/dashboard/src/server.ts": 2338,
|
||||
"packages/dashboard/src/server.ts": 2378,
|
||||
"packages/engine/src/__tests__/executor-pause.test.ts": 2836,
|
||||
"packages/engine/src/__tests__/executor-prompt.test.ts": 2572,
|
||||
"packages/engine/src/__tests__/executor-recovery.test.ts": 3600,
|
||||
"packages/engine/src/__tests__/executor-step-session.test.ts": 3731,
|
||||
"packages/engine/src/__tests__/executor-worktree.test.ts": 2534,
|
||||
"packages/engine/src/__tests__/executor-worktree.test.ts": 2536,
|
||||
"packages/engine/src/__tests__/heartbeat-executor.test.ts": 3944,
|
||||
"packages/engine/src/__tests__/merger-merge-lifecycle.test.ts": 3253,
|
||||
"packages/engine/src/__tests__/merger-verification.test.ts": 3163,
|
||||
"packages/engine/src/__tests__/mission-execution-loop.test.ts": 2455,
|
||||
"packages/engine/src/__tests__/pi-create-fn-agent.test.ts": 2191,
|
||||
"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__/self-healing.test.ts": 9641,
|
||||
"packages/engine/src/__tests__/step-session-executor.test.ts": 2911,
|
||||
"packages/engine/src/__tests__/triage.test.ts": 4514,
|
||||
"packages/engine/src/__tests__/triage.test.ts": 4511,
|
||||
"packages/engine/src/agent-heartbeat.ts": 4548,
|
||||
"packages/engine/src/agent-tools.ts": 3584,
|
||||
"packages/engine/src/executor.ts": 15657,
|
||||
"packages/engine/src/executor.ts": 15985,
|
||||
"packages/engine/src/merger.ts": 12643,
|
||||
"packages/engine/src/pi.ts": 2421,
|
||||
"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,
|
||||
|
||||
Reference in New Issue
Block a user