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

Function normalizeCodeCommentSeverity

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

Source from the content-addressed store, hash-verified

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

Callers 1

ParseCommentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected