(p string)
| 168 | } |
| 169 | |
| 170 | func 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 | |
| 182 | func normalizeCodeCommentCategory(category string) string { |
| 183 | normalized := strings.ToLower(category) |
no outgoing calls
no test coverage detected