cloudfoundry/stratos

View on GitHub
src/frontend/packages/cf-autoscaler/src/features/edit-autoscaler-policy/edit-autoscaler-policy-step4/edit-autoscaler-policy-step4.component.ts

Summary

Maintainability
B
4 hrs
Test Coverage

File edit-autoscaler-policy-step4.component.ts has 264 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import { Component, OnInit } from '@angular/core';
import { AbstractControl, FormBuilder, FormGroup, ValidatorFn, Validators } from '@angular/forms';
import { ErrorStateMatcher, ShowOnDirtyErrorStateMatcher } from '@angular/material/core';
import { ActivatedRoute } from '@angular/router';
import { Store } from '@ngrx/store';

    Function validateSpecificDateEndDateTime has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      validateSpecificDateEndDateTime(): ValidatorFn {
        return (control: AbstractControl): { [key: string]: any, } => {
          if (!this.editSpecificDateForm) {
            return null;
          }

      Function validateSpecificDateStartDateTime has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        validateSpecificDateStartDateTime(): ValidatorFn {
          return (control: AbstractControl): { [key: string]: any, } => {
            if (!this.editSpecificDateForm) {
              return null;
            }

        There are no issues that match your filters.

        Category
        Status