INNER CODE UNIT · JavaScript
bold
nadimtuhin/claude-token-optimizer · src/commands/audit.js:288
const bold = s => useColor ? chalk.bold(s) : s;
console.log('');
console.log(bold('cto audit — CLAUDE.md health report'));
console.log('');
for (const line of formatResults(results, useColor)) {
console.log(line);
}
console.log('');
const summary = [];
if (errors) summary.push(red(`${errors} error${errors > 1 ? 's' : ''}`));
if (warnings) summary.push(yellow(`${warnings} warning${warnings > 1 ? 's' : ''}`));
if (infos) summary.push(dim(`${infos} info item${infos > 1 ? 's' : ''}`));
if (!summary.length) summary.push(green('all checks passed'));
console.log(summary.join(', '));
const fixable = results.filter(r => !r.pass && r.fixKey);