Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildCommentsXML ¶
func BuildCommentsXML(comments []models.CommentInfo, filePath string) string
BuildCommentsXML builds <comments> XML block for a given file and its comments. Returns XML formatted string with comments, or empty string if no comments provided.
func FormatHookMessage ¶
func FormatHookMessage(comments []models.CommentInfo, customPrompt string) string
FormatHookMessage formats comment detection results for Claude Code hooks. Groups comments by file path and builds complete error message with instructions and XML blocks for each file. If customPrompt is provided, it replaces the default message template. Use {{comments}} placeholder in customPrompt to insert detected comments XML. Returns formatted hook error message, or empty string if no comments provided.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.