UNPKG

agentsqripts

Version:

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

34 lines (30 loc) 733 B
/** * @file Cluster type provider * @description Provides cluster type descriptions for keyword clusters */ /** * Get the type of responsibility cluster * @param {string[]} cluster - Keyword cluster * @returns {string} Cluster type description */ function getClusterType(cluster) { const types = { 'fetch': 'Data Access', 'render': 'UI Rendering', 'validate': 'Data Processing', 'connect': 'Networking', 'test': 'Testing', 'config': 'Configuration', 'logger': 'Logging', 'crypto': 'Security' }; for (const [key, type] of Object.entries(types)) { if (cluster.includes(key)) { return type; } } return 'Mixed Functionality'; } module.exports = { getClusterType };