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

Function normalizeCommentPath

internal/tool/code_comment.go:170–180  ·  view source on GitHub ↗
(p string)

Source from the content-addressed store, hash-verified

168}
169
170func normalizeCommentPath(p string) string {
171 if p == "" {
172 return ""
173 }
174 p = strings.ReplaceAll(p, "\\", "/")
175 p = path.Clean(p)
176 if p == "." {
177 return ""
178 }
179 return strings.TrimPrefix(p, "/")
180}
181
182func normalizeCodeCommentCategory(category string) string {
183 normalized := strings.ToLower(category)

Callers 1

parseCommentsInnerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected