UNPKG

agentsqripts

Version:

Comprehensive static code analysis toolkit for identifying technical debt, security vulnerabilities, performance issues, and code quality problems

13 lines (11 loc) 442 B
/** * @file Check if difference is only in function calls * @description Single responsibility: Detect if two lines differ only in function names */ function isFunctionCallDifference(line1, line2) { if (!line1 || !line2) return false; const normalized1 = line1.replace(/\w+\s*\(/g, 'FUNC('); const normalized2 = line2.replace(/\w+\s*\(/g, 'FUNC('); return normalized1 === normalized2; } module.exports = isFunctionCallDifference;