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

Function normalizeCodeCommentSeverity

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

Source from the content-addressed store, hash-verified

134}
135
136func normalizeCodeCommentSeverity(severity string) string {
137 normalized := strings.ToLower(severity)
138 if _, ok := validCodeCommentSeverities[normalized]; ok {
139 return normalized
140 }
141 return codeCommentSeverityLow
142}

Callers 1

ParseCommentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected