SUSE/stratos

View on GitHub
src/frontend/packages/cf-autoscaler/src/features/autoscaler-tab-extension/autoscaler-tab-extension.component.ts

Summary

Maintainability
C
1 day
Test Coverage

File autoscaler-tab-extension.component.ts has 369 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import { Component, OnDestroy, OnInit } from '@angular/core';
import { MatSnackBar, MatSnackBarRef, SimpleSnackBar } from '@angular/material/snack-bar';
import { ActivatedRoute } from '@angular/router';
import { Store } from '@ngrx/store';
import { combineLatest, Observable, of, Subscription } from 'rxjs';

    Function ngOnInit has 78 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      ngOnInit() {
    
        this.canManageCredentials$ = fetchAutoscalerInfo(
          this.applicationService.cfGuid,
          this.entityServiceFactory

      Function initErrorSub has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        initErrorSub() {
          if (this.appAutoscalerPolicyErrorSub) {
            this.appAutoscalerScalingHistoryErrorSub.unsubscribe();
          }
      
      

        There are no issues that match your filters.

        Category
        Status