UNPKG

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.

23 lines 806 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * VIBE002: Copy-paste artifacts * Detects repeated code blocks that suggest copy-paste without adaptation */ const rule = { meta: { id: 'VIBE002', category: 'development', severity: 'medium', message: 'Repeated code block detected (possible copy-paste artifact)', fix: 'Extract repeated logic into a shared function or component', impact: 'Copy-paste code increases maintenance burden and may contain unadapted placeholders' }, impl: { fileTypes: ['js', 'jsx', 'ts', 'tsx', 'svelte', 'astro'], // Detection handled by VibeScanner with block comparison detect: undefined } }; exports.default = rule; //# sourceMappingURL=VIBE002.js.map