MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / formatWarning

Function formatWarning

source code/keybindings/validate.ts:458–467  ·  view source on GitHub ↗
(warning: KeybindingWarning)

Source from the content-addressed store, hash-verified

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

Callers 1

formatWarningsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected