cloudfoundry/stratos

View on GitHub
src/frontend/packages/cloud-foundry/src/features/applications/deploy-application/github-project-exists.directive.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function validate has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  validate(c: AbstractControl): Observable<GithubProjectExistsResponse> {
    if (c.value) {
      if (!this.isValidProjectName(c.value) || this.haveAlreadyChecked(c.value)) {
        return observableOf({
          githubProjectDoesNotExist: true,

    There are no issues that match your filters.

    Category
    Status