cloudfoundry/stratos

View on GitHub
src/frontend/packages/cloud-foundry/src/features/cf/cf.helpers.ts

Summary

Maintainability
B
6 hrs
Test Coverage

File cf.helpers.ts has 380 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import { ActivatedRoute } from '@angular/router';
import { Store } from '@ngrx/store';
import { combineLatest, Observable } from 'rxjs';
import { filter, first, map, publishReplay, refCount, switchMap, tap } from 'rxjs/operators';

Severity: Minor
Found in src/frontend/packages/cloud-foundry/src/features/cf/cf.helpers.ts - About 5 hrs to fix

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

    export function getOrgRoles(userRolesInOrg: UserRoleInOrg): IUserRole<OrgUserRoleNames>[] {
      const roles = [];
      if (userRolesInOrg[OrgUserRoleNames.MANAGER]) {
        roles.push({
          string: UserRoleLabels.org.short[OrgUserRoleNames.MANAGER],
    Severity: Minor
    Found in src/frontend/packages/cloud-foundry/src/features/cf/cf.helpers.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status