RocketChat/Rocket.Chat

View on GitHub
ee/packages/pdf-worker/src/strategies/ChatTranscript.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function parserMessages has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private parserMessages(messages: PDFMessage[], dateFormat: string, timeAndDateFormat: string, timezone: string): PDFMessage[] {
        return messages.map((message, index, arr) => {
            const previousMessage = arr[index - 1];
            const { ts, ...rest } = message;
            const formattedTs = moment(ts).tz(timezone).format(timeAndDateFormat);
Severity: Minor
Found in ee/packages/pdf-worker/src/strategies/ChatTranscript.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status