Skip to main content

Crate uira_comment_checker

Crate uira_comment_checker 

Source

Structs§

AgentMemoFilter
Filter for detecting “agent memo” comments.
BddFilter
CommentDetector
CommentInfo
DirectiveFilter
FilterChain
LanguageRegistry
ShebangFilter

Enums§

CommentType

Traits§

CommentFilter

Functions§

build_comments_xml
Builds a <comments> XML block for a given file and its comments. Returns an XML formatted string with comments, or empty string if no comments provided.
format_hook_message
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 custom_prompt is provided, it replaces the default message template. Use {{comments}} placeholder in custom_prompt to insert detected comments XML. Returns formatted hook error message, or empty string if no comments provided.