src/frontend/packages/cf-autoscaler/src/features/autoscaler-tab-extension/autoscaler-tab-extension.component.ts
File autoscaler-tab-extension.component.ts
has 369 lines of code (exceeds 250 allowed). Consider refactoring. Open
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
Open
ngOnInit() {
this.canManageCredentials$ = fetchAutoscalerInfo(
this.applicationService.cfGuid,
this.entityServiceFactory
Function initErrorSub
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initErrorSub() {
if (this.appAutoscalerPolicyErrorSub) {
this.appAutoscalerScalingHistoryErrorSub.unsubscribe();
}