MCPcopy Create free account
hub / github.com/53AI/53AIHub / normalizeScanDescription

Function normalizeScanDescription

api/service/skill_library_scan.go:1135–1141  ·  view source on GitHub ↗
(description string, riskLevel string)

Source from the content-addressed store, hash-verified

1133}
1134
1135func normalizeScanDescription(description string, riskLevel string) string {
1136 description = strings.TrimSpace(description)
1137 if riskLevel == model.SkillRiskLevelHigh {
1138 return ""
1139 }
1140 return truncateByRunes(description, skillDescriptionMaxChars)
1141}
1142
1143func resolvePersistedSkillDescription(rawDescription string, output *SkillScanOutput) string {
1144 rawDescription = strings.TrimSpace(rawDescription)

Callers 1

ScanMethod · 0.85

Calls 1

truncateByRunesFunction · 0.85

Tested by

no test coverage detected