UNPKG

agentsqripts

Version:

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

22 lines (20 loc) â€ĸ 529 B
/** * @file Get severity emoji utility * @description Single responsibility: Map severity levels to appropriate emojis */ /** * Format severity with appropriate emoji * @param {string} severity - Severity level (HIGH, MEDIUM, LOW) * @returns {string} Emoji for severity */ function getSeverityEmoji(severity) { const emojiMap = { 'CRITICAL': 'đŸ’Ĩ', 'HIGH': '🚨', 'MEDIUM': 'âš ī¸', 'LOW': '🔍', 'INFO': 'â„šī¸' }; return emojiMap[severity] || '📌'; } module.exports = getSeverityEmoji;