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

Function normalizeCodeCommentCategory

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

Source from the content-addressed store, hash-verified

161}
162
163func normalizeCodeCommentCategory(category string) string {
164 normalized := strings.ToLower(category)
165 if _, ok := validCodeCommentCategories[normalized]; ok {
166 return normalized
167 }
168 return codeCommentCategoryOther
169}
170
171func normalizeCodeCommentSeverity(severity string) string {
172 normalized := strings.ToLower(severity)

Callers 1

parseCommentsInnerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected