MCPcopy Create free account
hub / github.com/code-pushup/cli / truncateDescription

Function truncateDescription

packages/utils/src/lib/formatting.ts:124–126  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

122}
123
124export function truncateDescription(text: string): string {
125 return truncateText(text, MAX_DESCRIPTION_LENGTH);
126}
127
128export function truncateIssueMessage(text: string): string {
129 return truncateText(text, MAX_ISSUE_MESSAGE_LENGTH);

Callers 1

ruleToAuditFunction · 0.90

Calls 1

truncateTextFunction · 0.85

Tested by

no test coverage detected