src/internal/multiPart.ts

Summary

Maintainability
A
1 hr
Test Coverage

Showing 2 of 2 total issues

Function parseMultiPart has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function parseMultiPart(
data: string
): StatementResponseWithAttachments | StatementsResponseWithAttachments {
const boundary = data.trim().split(crlf)[0].trim();
const parts = data
Severity: Minor
Found in src/internal/multiPart.ts - About 1 hr to fix

    Function parseMultiPart has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
    Open

    export function parseMultiPart(
    data: string
    ): StatementResponseWithAttachments | StatementsResponseWithAttachments {
    const boundary = data.trim().split(crlf)[0].trim();
    const parts = data
    Severity: Minor
    Found in src/internal/multiPart.ts - About 25 mins to fix

    There are no issues that match your filters.

    Category
    Status