opf/openproject

View on GitHub
frontend/src/app/features/work-packages/components/wp-single-view/wp-single-view.component.ts

Summary

Maintainability
C
7 hrs
Test Coverage

File wp-single-view.component.ts has 324 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// -- copyright
// OpenProject is an open source project management software.
// Copyright (C) 2012-2024 the OpenProject GmbH
//
// This program is free software; you can redistribute it and/or

    WorkPackageSingleViewComponent has 21 functions (exceeds 20 allowed). Consider refactoring.
    Open

    @Component({
      templateUrl: './wp-single-view.component.html',
      selector: 'wp-single-view',
      changeDetection: ChangeDetectionStrategy.OnPush,
    })

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

        private updateWorkPackageCreationState(change:WorkPackageChangeset) {
          const resource = change.projectedResource;
          if (!this.currentProject.inProjectContext) {
            this.projectContext.field = this.getFields(change, ['project']);
            this.workPackage.project = resource.project as HalResource;

        There are no issues that match your filters.

        Category
        Status