cloudfoundry/stratos

View on GitHub
src/frontend/packages/store/src/effects/endpoint.effects.ts

Summary

Maintainability
B
5 hrs
Test Coverage

File endpoint.effects.ts has 302 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import { HttpClient, HttpErrorResponse, HttpParams } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Actions, Effect, ofType } from '@ngrx/effects';
import { Store } from '@ngrx/store';
import { catchError, mergeMap } from 'rxjs/operators';
Severity: Minor
Found in src/frontend/packages/store/src/effects/endpoint.effects.ts - About 3 hrs to fix

    Function doEndpointAction has 47 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      private doEndpointAction(
        apiAction: EntityRequestAction | PaginatedAction,
        url: string,
        params: HttpParams,
        apiActionType: ApiRequestTypes = 'update',
    Severity: Minor
    Found in src/frontend/packages/store/src/effects/endpoint.effects.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status