opf/openproject

View on GitHub
frontend/src/stimulus/controllers/dynamic/admin/custom-fields.controller.ts

Summary

Maintainability
B
5 hrs
Test Coverage

Function toggleFormat has 60 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private toggleFormat(format:string) {
    // defaults (reset these fields before doing anything else)
    this.activate(this.defaultBoolTargets, false);
    this.activate(this.defaultLongTextTargets, false);
    this.activate(this.multiSelectTargets, false);

    File custom-fields.controller.ts has 257 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*
     * -- copyright
     * OpenProject is an open source project management software.
     * Copyright (C) 2023 the OpenProject GmbH
     *

      Function setupDragAndDrop has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        private setupDragAndDrop() {
          // Make custom fields draggable
          // eslint-disable-next-line no-undef
          const drake = dragula([this.dragContainerTarget], {
            isContainer: () => false,

        There are no issues that match your filters.

        Category
        Status