UNPKG

agentsqripts

Version:

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

22 lines (20 loc) 486 B
/** * @file Get grade emoji mapping * @description Single responsibility: Map grade letters to emoji representations */ /** * Get grade emoji based on grade letter * @param {string} grade - Grade letter (A, B, C, D, F) * @returns {string} Corresponding emoji */ function getGradeEmoji(grade) { const gradeEmojis = { 'A': '🌟', 'B': '✅', 'C': '⚡', 'D': '⚠️', 'F': '❌' }; return gradeEmojis[grade] || '❓'; } module.exports = getGradeEmoji;