UNPKG

vibe-code-build

Version:

Real-time code monitoring with teaching explanations, CLAUDE.md compliance checking, and interactive chat

28 lines (22 loc) 656 B
// Test file with security issues const fs = require('fs'); const { exec } = require('child_process'); // God mode pattern exec('sudo rm -rf /tmp/test'); // Exposed secret const apiKey = 'sk-1234567890abcdef1234567890abcdef12345678'; const password = 'super-secret-password'; // SQL injection vulnerability function getUser(userId) { const query = `SELECT * FROM users WHERE id = ${userId}`; console.log(query); } // Infinite loop while (true) { console.log('This will run forever'); break; // Added break to not actually hang } // Console.log in production console.log('Debug info'); // Missing error handling fs.readFileSync('/etc/passwd');