cloudfoundry/stratos

View on GitHub
src/frontend/packages/core/src/core/endpoints.service.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function canActivate has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  canActivate(route: ActivatedRouteSnapshot, routeState: RouterStateSnapshot): Observable<boolean> {
    // Reroute user to endpoint/no endpoint screens if there are no connected or registered endpoints
    return observableCombineLatest(
      this.store.select('auth'),
      this.store.select(endpointStatusSelector)
Severity: Minor
Found in src/frontend/packages/core/src/core/endpoints.service.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status