cloudfoundry-incubator/stratos

View on GitHub
src/frontend/packages/cloud-foundry/src/user-permissions/cf-user-permissions-checkers.ts

Summary

Maintainability
C
1 day
Test Coverage

File cf-user-permissions-checkers.ts has 432 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import { Store } from '@ngrx/store';
import { combineLatest, Observable, of } from 'rxjs';
import { distinctUntilChanged, filter, map, switchMap } from 'rxjs/operators';

import {

    CfUserPermissionsChecker has 28 functions (exceeds 20 allowed). Consider refactoring.
    Open

    export class CfUserPermissionsChecker extends BaseCurrentUserPermissionsChecker implements ICurrentUserPermissionsChecker {
      static readonly ALL_SPACES = 'PERMISSIONS__ALL_SPACES_PLEASE';
    
      constructor(private store: Store<GeneralEntityAppState>) {
        super();

      TODO found
      Open

        // TODO: See #4189. Wire in. Can be org manager?

      There are no issues that match your filters.

      Category
      Status