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

Function normalizeCodeCommentSeverity

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

Source from the content-addressed store, hash-verified

148}
149
150func normalizeCodeCommentSeverity(severity string) string {
151 normalized := strings.ToLower(severity)
152 if _, ok := validCodeCommentSeverities[normalized]; ok {
153 return normalized
154 }
155 return codeCommentSeverityLow
156}

Callers 1

parseCommentsInnerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected