cloudfoundry/stratos

View on GitHub
src/frontend/packages/cloud-foundry/src/shared/components/add-service-instance/add-service-instance/add-service-instance.component.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function configureForEditServiceInstanceMode has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private configureForEditServiceInstanceMode() {
    const { endpointId, serviceInstanceId } = this.activatedRoute.snapshot.params;
    if (this.serviceType === this.serviceTypes.USER_SERVICE) {
      this.serviceInstanceId = serviceInstanceId;
      this.title$ = observableOf('Edit User Provided Service Instance');

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

      ngAfterContentInit(): void {
        // Check if wizard has been initiated from the Services Marketplace
        if (this.inMarketplaceMode) {
          this.initialisedService$ = this.initialiseForMarketplaceMode();
        }

      There are no issues that match your filters.

      Category
      Status