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

Function normalizeCodeCommentCategory

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

Source from the content-addressed store, hash-verified

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

Callers 1

ParseCommentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected