MCPcopy Create free account
hub / github.com/alibaba/open-code-review / normalizeCodeCommentCategory

Function normalizeCodeCommentCategory

internal/tool/code_comment.go:128–134  ·  view source on GitHub ↗
(category string)

Source from the content-addressed store, hash-verified

126}
127
128func normalizeCodeCommentCategory(category string) string {
129 normalized := strings.ToLower(category)
130 if _, ok := validCodeCommentCategories[normalized]; ok {
131 return normalized
132 }
133 return codeCommentCategoryOther
134}
135
136func normalizeCodeCommentSeverity(severity string) string {
137 normalized := strings.ToLower(severity)

Callers 1

ParseCommentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected