cloudfoundry/stratos

View on GitHub
src/frontend/packages/store/src/reducers/pagination-reducer/pagination-reducer.helper.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function getObservables has 53 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function getObservables<T = any>(
  store: Store<GeneralEntityAppState>,
  entityKey: string,
  paginationKey: string,
  paginationAction: PaginatedAction | PaginatedAction[],

    Function getObservables has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

      store: Store<GeneralEntityAppState>,
      entityKey: string,
      paginationKey: string,
      paginationAction: PaginatedAction | PaginatedAction[],
      paginationMonitor: PaginationMonitor,

      Avoid too many return statements within this function.
      Wontfix

        return false;

        FIXME found
        Open

        // FIXME: Add typings, should be done with #1477

        FIXME found
        Open

        // FIXME: Add typings, should be done with #1477

        FIXME found
        Open

        // FIXME: Add typings, should be done with #1477

        FIXME found
        Open

          // FIXME: This will reset pagination every time regardless of if we need to (or just want the pag settings/entities from pagination

        There are no issues that match your filters.

        Category
        Status