ubon
Version:
Security scanner for AI-generated apps (Cursor, Lovable, Windsurf, v0). Catches hardcoded secrets, prompt injection, hallucinated imports, Server Actions / Edge runtime mistakes, and the vibe-coded vulnerabilities traditional linters miss.
27 lines • 882 B
TypeScript
import { ScanResult } from '../types';
export interface SuppressionMatch {
ruleId: string;
reason?: string;
line: number;
}
/**
* Detects inline suppression comments in a file
* Supports formats:
* - // ubon-disable-next-line RULEID
* - // ubon-disable-next-line RULEID reason goes here
* - comment: ubon-disable-next-line RULEID
* - comment: ubon-disable-next-line RULEID reason goes here
*/
export declare function detectSuppressions(filePath: string): SuppressionMatch[];
/**
* Applies suppressions to scan results
*/
export declare function applySuppressions(results: ScanResult[]): ScanResult[];
/**
* Filters results based on suppression options
*/
export declare function filterSuppressedResults(results: ScanResult[], options: {
showSuppressed?: boolean;
ignoreSuppressed?: boolean;
}): ScanResult[];
//# sourceMappingURL=suppressions.d.ts.map