cloudfoundry/stratos

View on GitHub
src/frontend/packages/store/src/entity-request-pipeline/entity-request-base-handlers/map-multi-endpoint.pipes.ts

Summary

Maintainability
A
3 hrs
Test Coverage

Function mapMultiEndpointResponses has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function mapMultiEndpointResponses(
  action: EntityRequestAction,
  catalogEntity: StratosBaseCatalogEntity,
  requestType: ApiRequestTypes,
  multiEndpointResponses: HandledMultiEndpointResponse,

    Function getEntities has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function getEntities(
      endpointResponse: {
        normalizedEntities: NormalizedResponse<any>;
        endpointGuid: string;
      },

      Function mapMultiEndpointResponses has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

        action: EntityRequestAction,
        catalogEntity: StratosBaseCatalogEntity,
        requestType: ApiRequestTypes,
        multiEndpointResponses: HandledMultiEndpointResponse,
        actionDispatcher: (actionToDispatch: Action) => void

        TODO found
        Wontfix

        // TODO: Type the output of this pipe. #3976

        There are no issues that match your filters.

        Category
        Status