frontend/src/stimulus/controllers/dynamic/admin/custom-fields.controller.ts
Function toggleFormat
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
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
Open
private setupDragAndDrop() {
// Make custom fields draggable
// eslint-disable-next-line no-undef
const drake = dragula([this.dragContainerTarget], {
isContainer: () => false,