agentsqripts
Version:
Comprehensive static code analysis toolkit for identifying technical debt, security vulnerabilities, performance issues, and code quality problems
15 lines (13 loc) • 424 B
JavaScript
/**
* @file Check if variable is local to a scope
* @description Single responsibility: Determine if a variable name is local to a scope
*/
/**
* Check if variable is local to a scope
*/
function isLocalVariable(name, scope) {
// Simplified check - would need proper scope tracking
const localPatterns = ['e', 'event', 'i', 'j', 'index'];
return localPatterns.includes(name);
}
module.exports = isLocalVariable;