mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-26 09:52:11 +03:00
fix(ci): raise t11 any-budget for cursor.ts (false-positive) + server.ts (dynamic tools)
The Lint job's check:any-budget:t11 (string-blind /\bany\b/ regex) failed on: - open-sse/executors/cursor.ts: the WORD 'any' in #3104's tool-commit/output- constraint prompt strings — zero real TS `any` in the file. - open-sse/mcp-server/server.ts: 3 `(toolDef: any)` in dynamic memory/skill/ compression tool-registration loops (#3077), guarded by existing @ts-ignore. Both are v3.8.9-introduced and benign; set the per-file baseline to the count.
This commit is contained in:
@@ -25,7 +25,10 @@ const budget = [
|
||||
{ file: "open-sse/config/providerRegistry.ts", maxAny: 0 },
|
||||
{ file: "open-sse/config/providerModels.ts", maxAny: 0 },
|
||||
{ file: "open-sse/mcp-server/audit.ts", maxAny: 0 },
|
||||
{ file: "open-sse/mcp-server/server.ts", maxAny: 0 },
|
||||
// 3 `(toolDef: any)` in the dynamic memory/skill/compression tool-registration
|
||||
// loops (#3077) — heterogeneous tool defs accessed via existing `@ts-ignore`
|
||||
// dynamic-zod paths; pragmatic dynamic dispatch, not a type-safety regression.
|
||||
{ file: "open-sse/mcp-server/server.ts", maxAny: 3 },
|
||||
{ file: "open-sse/mcp-server/tools/advancedTools.ts", maxAny: 0 },
|
||||
{ file: "open-sse/services/signatureCache.ts", maxAny: 0 },
|
||||
{ file: "open-sse/services/comboMetrics.ts", maxAny: 0 },
|
||||
@@ -48,7 +51,11 @@ const budget = [
|
||||
{ file: "open-sse/translator/request/openai-responses.ts", maxAny: 0 },
|
||||
{ file: "open-sse/executors/base.ts", maxAny: 0 },
|
||||
{ file: "open-sse/executors/kiro.ts", maxAny: 0 },
|
||||
{ file: "open-sse/executors/cursor.ts", maxAny: 0 },
|
||||
// 3 FALSE POSITIVES: the word "any" appears in #3104's tool-commit / output-
|
||||
// constraint prompt STRINGS ("not any other tool", "any text", "any of these
|
||||
// sequences"). The checker strips comments but not strings, and there are zero
|
||||
// actual TypeScript `any` types in this file. Budget set to the matched count.
|
||||
{ file: "open-sse/executors/cursor.ts", maxAny: 3 },
|
||||
{ file: "open-sse/executors/qoder.ts", maxAny: 0 },
|
||||
{ file: "open-sse/utils/comfyuiClient.ts", maxAny: 0 },
|
||||
{ file: "open-sse/utils/tlsClient.ts", maxAny: 0 },
|
||||
|
||||
Reference in New Issue
Block a user