-
Notifications
You must be signed in to change notification settings - Fork 0
Description
@copilot, please fix the following errors in main if they have not already been corrected. Severity levels as assessed by codacy.
HIGH
Unexpected any. Specify a different type.
Cyrano/src/
http-bridge.ts
1026
});
1027
1028
function extractTextPayload(result: any): string {
1028
function extractTextPayload(result: unknown): string {
1029
const item = result?.content?.find?.((c: any) => c?.type === 'text' && 'text' in c);
1030
return item?.text || '';
HIGH
Unexpected any. Specify a different type.
apps/forecaster/frontend/src/pages/
CityTaxForecast.tsx
18
const [result, setResult] = useState(null);
18
const [result, setResult] = useState(null);
HIGH
Unexpected any. Specify a different type.
Cyrano/src/
http-bridge.ts
550
const toolInstance = (tool as any).default || tool;
550
const toolInstance = (tool as unknown).default || tool;
MEDIUM
'sanitizePromptInput' is defined but never used.
Cyrano/src/
http-bridge.ts
1173
import { sanitizePromptInput, filterSensitiveData, detectPromptInjection } from './middleware/prompt-injection-defense.js';
HIGH
Unexpected any. Specify a different type.
Cyrano/src/
http-bridge.ts
1029
const item = result?.content?.find?.((c: any) => c?.type === 'text' && 'text' in c);
1029
const item = result?.content?.find?.((c: unknown) => c?.type === 'text' && 'text' in c);
HIGH
Unexpected any. Specify a different type.
Cyrano/src/
http-bridge.ts
1269
let metadata: any = {};
1269
let metadata: unknown = {};
HIGH
Unexpected any. Specify a different type.
Cyrano/src/
http-bridge.ts
1219
const file = (req as any).file;
1219
const file = (req as unknown).file;
HIGH
Unexpected any. Specify a different type.
Cyrano/src/engines/forecast/
forecast-engine.ts
162
async execute(input: any): Promise {
162
async execute(input: unknown): Promise {
MEDIUM
'eq' is assigned a value but never used.
Cyrano/src/
http-bridge.ts
1267
const { eq } = await import('drizzle-orm');
HIGH
Unexpected any. Specify a different type.
apps/forecaster/backend/src/
index.ts
108
const status = (err as any)?.statusCode ?? 500;
108
const status = (err as unknown)?.statusCode ?? 500;
HIGH
Unexpected any. Specify a different type.
apps/forecaster/backend/src/
index.ts
58
(err as any).statusCode = 400;
58
(err as unknown).statusCode = 400;
HIGH
Unexpected any. Specify a different type.
Cyrano/src/engines/forecast/
forecast-engine.ts
218
input: any,
218
input: unknown,
MINOR
Unnecessary escape character: ".
apps/forecaster/backend/src/
index.ts
242
res.setHeader('Content-Disposition', attachment; filename=\"LexFiat-Forecaster-CityTax-${calc.city}-${calc.year}.pdf\");
242
res.setHeader('Content-Disposition', attachment; filename="LexFiat-Forecaster-CityTax-${calc.city}-${calc.year}.pdf\");
HIGH
Unexpected any. Specify a different type.
Cyrano/src/engines/forecast/
forecast-engine.ts
83
condition: (context: any) => {
83
condition: (context: unknown) => {
HIGH
Unexpected any. Specify a different type.
apps/forecaster/frontend/src/pages/
TaxForecast.tsx
27
const [result, setResult] = useState(null);
27
const [result, setResult] = useState(null);
HIGH
Unexpected any. Specify a different type.
Cyrano/src/
http-bridge.ts
1300
const user = (req as any).user;
1300
const user = (req as unknown).user;
MEDIUM [I disagree. For a MCP environment, Stdio is usually quite significant; this might require some additional investigation]
'StdioServerTransport' is defined but never used.
Cyrano/src/
http-bridge.ts
43
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
MEDIUM
'width' is assigned a value but never used.
apps/forecaster/backend/src/
index.ts
213
const { width, height } = page.getSize();