UNPKG

agentsqripts

Version:

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

11 lines (9 loc) 358 B
/** * @file Check if file is a backend file * @description Single responsibility: Identify backend files by path */ function isBackendFile(filePath) { const backendIndicators = ['server', 'api', 'routes', 'controllers', 'app.js', 'express']; return backendIndicators.some(indicator => filePath.includes(indicator)); } module.exports = isBackendFile;