cloudfoundry/stratos

View on GitHub
src/frontend/packages/cloud-foundry/src/features/applications/application-monitor.service.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function constructor has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  constructor(
    private applicationService: ApplicationService,
  ) {
    // Do we need share()? Or should this be on the app stats observable?
    this.appMonitor$ = this.applicationService.appStats$.pipe(map(stats => {

    Function appMonitor$ has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        this.appMonitor$ = this.applicationService.appStats$.pipe(map(stats => {
          const res = new AppMonitorState();
          if (!stats) {
            return res;
          }

      There are no issues that match your filters.

      Category
      Status