output

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2025 License: MIT Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL