Advertisement

← vibesdk

worker/services/static-analysis/types.ts

533 bytes Download file
import type { CodeIssue, StaticAnalysisResponse, LintSeverity } from '../sandbox/sandboxTypes';

export interface FileInput {
	path: string;
	content: string;
}

export interface IStaticAnalyzer {
	analyze(files: FileInput[]): Promise<StaticAnalysisResponse>;
}

export interface LanguageAnalyzer {
	readonly supportedExtensions: string[];
	analyze(file: FileInput): CodeIssue[];
}

export interface CrossFileValidator {
	validate(files: FileInput[]): CodeIssue[];
}

export type { CodeIssue, StaticAnalysisResponse, LintSeverity };