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.

27 lines 876 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const devFileTypes = ['js', 'jsx', 'ts', 'tsx', 'svelte', 'astro']; const rule = { meta: { id: 'DEV003', category: 'development', severity: 'medium', message: 'Placeholder URL detected', fix: 'Replace placeholder URLs with real endpoints' }, impl: { patterns: [ { ruleId: 'DEV003', confidence: 0.85, pattern: /\b(localhost|127\.0\.0\.1|example\.com|example\.org|example\.net|your-domain\.com)\b/i, message: 'Placeholder URL detected', severity: 'medium', fix: 'Replace placeholder URLs with real endpoints' } ], fileTypes: devFileTypes } }; exports.default = rule; //# sourceMappingURL=DEV003.js.map