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

Function normalizeCodeCommentSeverity

internal/tool/code_comment.go:171–177  ·  view source on GitHub ↗
(severity string)

Source from the content-addressed store, hash-verified

169}
170
171func normalizeCodeCommentSeverity(severity string) string {
172 normalized := strings.ToLower(severity)
173 if _, ok := validCodeCommentSeverities[normalized]; ok {
174 return normalized
175 }
176 return codeCommentSeverityLow
177}

Callers 1

parseCommentsInnerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected