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

Function normalizeCodeCommentCategory

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

Source from the content-addressed store, hash-verified

180}
181
182func normalizeCodeCommentCategory(category string) string {
183 normalized := strings.ToLower(category)
184 if _, ok := validCodeCommentCategories[normalized]; ok {
185 return normalized
186 }
187 return codeCommentCategoryOther
188}
189
190func normalizeCodeCommentSeverity(severity string) string {
191 normalized := strings.ToLower(severity)

Callers 1

parseCommentsInnerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected