Showing 3 of 21 total issues
File XAPI.ts
has 298 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { AttachmentUsages, Resources, Verbs, Versions } from "./constants";import { parseMultiPart } from "./internal/multiPart";import { formatEndpoint } from "./internal/formatEndpoint";import { getSearchQueryParamsAsObject } from "./helpers/getSearchQueryParamsAsObject/getSearchQueryParamsAsObject";import { calculateISO8601Duration } from "./helpers/calculateISO8601Duration/calculateISO8601Duration";
Function parseMultiPart
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function parseMultiPart( data: string): StatementResponseWithAttachments | StatementsResponseWithAttachments { const boundary = data.trim().split(crlf)[0].trim(); const parts = data
Function parseMultiPart
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
export function parseMultiPart( data: string): StatementResponseWithAttachments | StatementsResponseWithAttachments { const boundary = data.trim().split(crlf)[0].trim(); const parts = data
- Read upRead up