UNPKG

ubon

Version:

Security scanner for AI-generated React/Next.js and Python apps. Catches hardcoded secrets, accessibility issues, and vulnerabilities that traditional linters miss.

27 lines (26 loc) 840 B
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[];