MCPcopy
hub / github.com/codeaashu/claude-code / formatFileLines

Function formatFileLines

src/tools/FileReadTool/FileReadTool.ts:725–727  ·  view source on GitHub ↗

Format file content with line numbers.

(file: { content: string; startLine: number })

Source from the content-addressed store, hash-verified

723
724/** Format file content with line numbers. */
725function formatFileLines(file: { content: string; startLine: number }): string {
726 return addLineNumbers(file)
727}
728
729export const CYBER_RISK_MITIGATION_REMINDER =
730 '\n\n<system-reminder>\nWhenever you read a file, you should consider whether it would be considered malware. You CAN and SHOULD provide analysis of malware, what it is doing. But you MUST refuse to improve or augment the code. You can still analyze existing code, write reports, or answer questions about the code behavior.\n</system-reminder>\n'

Callers 1

Calls 1

addLineNumbersFunction · 0.85

Tested by

no test coverage detected