UNPKG

agentsqripts

Version:

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

23 lines (21 loc) 565 B
/** * @file Format severity with emoji * @description Single responsibility: Add emoji indicators to severity levels */ /** * Format severity with appropriate emoji * @param {string} severity - Severity level * @returns {string} Severity with emoji */ function formatSeverity(severity) { const severityEmojis = { 'CRITICAL': '🔴', 'HIGH': '🟠', 'MEDIUM': '🟡', 'LOW': '🟢', 'INFO': '🔵' }; const emoji = severityEmojis[severity.toUpperCase()] || '⚪'; return `${emoji} ${severity}`; } module.exports = formatSeverity;