opf/openproject

View on GitHub
frontend/src/app/shared/components/dataset-inputs.ts

Summary

Maintainability
A
1 hr
Test Coverage

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

export function populateInputsFromDataset(instance:DatasetInputsDecorated):any {
  // TypeScript won't allow us to do the necessary metaprogramming here since it does not
  // know about these keys (probably because we should not touch them)
  const cstr = instance.constructor as unknown as DatasetInputsComponent;

Severity: Minor
Found in frontend/src/app/shared/components/dataset-inputs.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status