This repo hasn't had a successful analysis for its default branch yet.

Showing 3 of 21 total issues

File XAPI.ts has 298 lines of code (exceeds 250 allowed). Consider refactoring.
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";
Severity: Minor
Found in src/XAPI.ts - About 3 hrs to fix

    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
      Severity
      Category
      Status
      Source
      Language