agentsqripts
Version:
Comprehensive static code analysis toolkit for identifying technical debt, security vulnerabilities, performance issues, and code quality problems
20 lines (17 loc) • 589 B
JavaScript
/**
* @file Check if directory should be skipped
* @description Single responsibility: Determine if a directory should be skipped during traversal
*/
/**
* Common directory skip patterns
*/
const SKIP_DIRECTORIES = ['node_modules', '.git', 'dist', 'build', 'coverage', '.cache', 'logs'];
/**
* Check if a directory should be skipped
* @param {string} dirName - Directory name
* @returns {boolean} True if should be skipped
*/
function shouldSkipDirectory(dirName) {
return SKIP_DIRECTORIES.includes(dirName) || dirName.startsWith('.');
}
module.exports = shouldSkipDirectory;