MCPcopy Index your code
hub / github.com/codeaashu/claude-code / formatWarning

Function formatWarning

src/keybindings/validate.ts:456–465  ·  view source on GitHub ↗
(warning: KeybindingWarning)

Source from the content-addressed store, hash-verified

454 * Format a warning for display to the user.
455 */
456export function formatWarning(warning: KeybindingWarning): string {
457 const icon = warning.severity === 'error' ? '✗' : '⚠'
458 let msg = `${icon} Keybinding ${warning.severity}: ${warning.message}`
459
460 if (warning.suggestion) {
461 msg += `\n ${warning.suggestion}`
462 }
463
464 return msg
465}
466
467/**
468 * Format multiple warnings for display.

Callers 1

formatWarningsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected